install docs folder when installing library (#1212)

fixes #470
This commit is contained in:
Dominic Hamon 2021-08-17 22:16:40 +01:00 committed by GitHub
parent 91ce110bbf
commit 990299fff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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()