Skip to content

Commit

Permalink
add DESTINATION, update RPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ajschmidt8 committed Feb 4, 2022
1 parent 5ae82d6 commit aacc5a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ function(ConfigureTest CMAKE_TEST_NAME)
set_target_properties(
${CMAKE_TEST_NAME}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUSPATIAL_BINARY_DIR}/gtests>"
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN/../../../lib"
)
target_link_libraries(${CMAKE_TEST_NAME} GTest::gtest_main GTest::gmock_main cudf::cudftestutil cuspatial)
add_test(NAME ${CMAKE_TEST_NAME} COMMAND ${CMAKE_TEST_NAME})
install(
TARGETS ${CMAKE_TEST_NAME}
COMPONENT testing
DESTINATION bin/gtests/libcuspatial
EXCLUDE_FROM_ALL
)
endfunction(ConfigureTest)
Expand Down

0 comments on commit aacc5a9

Please sign in to comment.