diff --git a/cmake/rocprofiler_config_install.cmake b/cmake/rocprofiler_config_install.cmake index 023ec78d..b776ee7b 100644 --- a/cmake/rocprofiler_config_install.cmake +++ b/cmake/rocprofiler_config_install.cmake @@ -10,6 +10,18 @@ install( DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME} COMPONENT core) +if(ROCPROFILER_BUILD_DOCS) + install( + FILES ${PROJECT_SOURCE_DIR}/LICENSE + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}-docs + COMPONENT docs) +endif() + +install( + FILES ${PROJECT_SOURCE_DIR}/LICENSE + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME}-tests + COMPONENT tests) + install( DIRECTORY ${PROJECT_SOURCE_DIR}/samples DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PACKAGE_NAME} diff --git a/cmake/rocprofiler_config_install_roctx.cmake b/cmake/rocprofiler_config_install_roctx.cmake index 66340940..62d38c88 100644 --- a/cmake/rocprofiler_config_install_roctx.cmake +++ b/cmake/rocprofiler_config_install_roctx.cmake @@ -102,3 +102,8 @@ export( set(${PACKAGE_NAME}_DIR "${_BUILDTREE_EXPORT_DIR}" CACHE PATH "${PACKAGE_NAME} build tree install" FORCE) + +install( + FILES ${PROJECT_SOURCE_DIR}/LICENSE + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PACKAGE_NAME} + COMPONENT roctx)