From 990299fff89326c246e709a038087938e6680f13 Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Tue, 17 Aug 2021 22:16:40 +0100 Subject: [PATCH] install docs folder when installing library (#1212) fixes #470 --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a6c8e9a7..1df8a4aa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,4 +117,8 @@ if (BENCHMARK_ENABLE_INSTALL) EXPORT "${targets_export_name}" NAMESPACE "${namespace}" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") + + install( + DIRECTORY "${PROJECT_SOURCE_DIR}/docs/" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME}") endif()