-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CMake install
rule for tests
#10190
Add CMake install
rule for tests
#10190
Conversation
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_.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval, pending cmake-style fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to also change the tests to have a INSTALL_RPATH
target property of "\$ORIGIN/../lib"
so that they can be run after installation.
--- a/cpp/tests/CMakeLists.txt
+++ b/cpp/tests/CMakeLists.txt
@@ -22,7 +22,9 @@ function(ConfigureTest CMAKE_TEST_NAME)
set_target_properties(
${CMAKE_TEST_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY
"$<BUILD_INTERFACE:${CUDF_BINARY_DIR}/gtests>"
+ INSTALL_RPATH "\$ORIGIN/../lib"
)
+
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10190 +/- ##
===============================================
Coverage ? 10.47%
===============================================
Files ? 122
Lines ? 20502
Branches ? 0
===============================================
Hits ? 2147
Misses ? 18355
Partials ? 0 Continue to review full report at Codecov.
|
@gpucibot merge |
This PR adds a CMake
install
rule for test targets. This step is a prerequisite to being able to package tests in their ownconda
package, which will enable us to deprecate Project Flash.