From 8732ca91a556685b1d6989dc7ebd834bf92fba1d Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Wed, 2 Feb 2022 16:41:47 -0500 Subject: [PATCH 1/2] Add CMake `install` rule for tests This PR adds a CMake `install` rule for test targets. This step is a prerequisite to being able to package tests in their own `conda` package, which will enable us to deprecate _Project Flash_. --- cpp/test/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 07f04ad2ab..8162135401 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -112,6 +112,7 @@ PROPERTIES BUILD_RPATH "\$ORIGIN" CUDA_STANDARD_REQUIRED ON POSITION_INDEPENDENT_CODE ON INTERFACE_POSITION_INDEPENDENT_CODE ON + INSTALL_RPATH "\$ORIGIN/../lib" ) target_compile_options(test_raft @@ -137,3 +138,9 @@ PRIVATE $ $ ) + +install( + TARGETS test_raft + COMPONENT testing + EXCLUDE_FROM_ALL +) From 7f855c7bc2ecc65e37f7ac0684e423c5cf03f511 Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Fri, 4 Feb 2022 12:29:56 -0500 Subject: [PATCH 2/2] add DESTINATION, update RPATH --- cpp/test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 8162135401..3352dae521 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -112,7 +112,7 @@ PROPERTIES BUILD_RPATH "\$ORIGIN" CUDA_STANDARD_REQUIRED ON POSITION_INDEPENDENT_CODE ON INTERFACE_POSITION_INDEPENDENT_CODE ON - INSTALL_RPATH "\$ORIGIN/../lib" + INSTALL_RPATH "\$ORIGIN/../../../lib" ) target_compile_options(test_raft @@ -142,5 +142,6 @@ PRIVATE install( TARGETS test_raft COMPONENT testing + DESTINATION bin/libraft/gtests EXCLUDE_FROM_ALL )