diff --git a/CMakeLists.txt b/CMakeLists.txt index 58f3b79e76..20becb009c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,6 +255,10 @@ if (NOT BUILD_TESTS_ONLY) TARGETS roc::rocshmem NAMESPACE roc:: ) + include(ROCMPackageConfigHelpers) + include(ROCMClients) + rocm_package_setup_component(clients) + rocm_package_setup_client_component(tests PACKAGE_NAME tests) rocm_create_package( NAME "rocSHMEM" diff --git a/tests/functional_tests/CMakeLists.txt b/tests/functional_tests/CMakeLists.txt index 2de5ac9dbe..c604823ba8 100644 --- a/tests/functional_tests/CMakeLists.txt +++ b/tests/functional_tests/CMakeLists.txt @@ -95,6 +95,10 @@ target_compile_definitions( $<$:HAVE_PMIX=1> ) +configure_file(../../scripts/functional_tests/driver.sh rocshmem_functional_driver.sh COPYONLY) +rocm_install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/rocshmem_functional_driver.sh COMPONENT tests DESTINATION ${CMAKE_INSTALL_DATADIR}/rocshmem) +rocm_install(TARGETS rocshmem_functional_tests COMPONENT tests) + target_link_libraries( ${PROJECT_NAME} PRIVATE diff --git a/tests/unit_tests/CMakeLists.txt b/tests/unit_tests/CMakeLists.txt index 5d7d4a465d..39647e26ad 100644 --- a/tests/unit_tests/CMakeLists.txt +++ b/tests/unit_tests/CMakeLists.txt @@ -119,6 +119,10 @@ set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) +configure_file(../../scripts/unit_tests/driver.sh rocshmem_unit_driver.sh COPYONLY) +rocm_install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/rocshmem_unit_driver.sh COMPONENT tests DESTINATION ${CMAKE_INSTALL_DATADIR}/rocshmem) +rocm_install(TARGETS rocshmem_unit_tests COMPONENT tests) + target_link_libraries( ${PROJECT_NAME} PRIVATE