Skip to content

Commit

Permalink
Add CMake install rule for tests (#483)
Browse files Browse the repository at this point in the history
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_.

Authors:
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Robert Maynard (https://github.com/robertmaynard)

URL: #483
  • Loading branch information
ajschmidt8 authored Feb 4, 2022
1 parent b7640ae commit c2837b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -140,3 +141,10 @@ PRIVATE
$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_CXX>
$<TARGET_NAME_IF_EXISTS:conda_env>
)

install(
TARGETS test_raft
COMPONENT testing
DESTINATION bin/libraft/gtests
EXCLUDE_FROM_ALL
)

0 comments on commit c2837b0

Please sign in to comment.