diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index f131b02039..369aac1e7c 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -115,6 +115,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 @@ -140,3 +141,10 @@ PRIVATE $ $ ) + +install( + TARGETS test_raft + COMPONENT testing + DESTINATION bin/libraft/gtests + EXCLUDE_FROM_ALL +)