From d269c845ae9737a3b7ec6006fa0b4e079b641cac Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Tue, 5 Nov 2024 13:38:55 -0600 Subject: [PATCH] SWDEV-466390: Adding License for roctx, docs, tests packages (#1174) * Adding License for roctx, docs, tests packages * Fixing Docs/ROCTx packages * Fixing roctx path --- cmake/rocprofiler_config_install.cmake | 12 ++++++++++++ cmake/rocprofiler_config_install_roctx.cmake | 5 +++++ 2 files changed, 17 insertions(+) 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)