diff options
author | Brad King <brad.king@kitware.com> | 2022-04-27 12:49:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-04-27 12:50:07 (GMT) |
commit | 54f795538247e00dc6b61adf42d93fc7f6e612e2 (patch) | |
tree | c4fef55b4d7891924d950d2c958eaa27ac5ade01 /Tests | |
parent | 5cfb2cead639eef12604d0fe7da7b01e8cca79d0 (diff) | |
parent | e6b51a1b01be2da0cbe0260861334a3b0b3f17e7 (diff) | |
download | CMake-54f795538247e00dc6b61adf42d93fc7f6e612e2.zip CMake-54f795538247e00dc6b61adf42d93fc7f6e612e2.tar.gz CMake-54f795538247e00dc6b61adf42d93fc7f6e612e2.tar.bz2 |
Merge topic 'CUDAToolkit-cupti-include-dirs'
e6b51a1b01 CUDAToolkit: Add include paths for CUDA::cupti
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !7200
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Cuda/Toolkit/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Tests/Cuda/Toolkit/cupti.cpp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Tests/Cuda/Toolkit/CMakeLists.txt b/Tests/Cuda/Toolkit/CMakeLists.txt index 8b42296..4df29fa 100644 --- a/Tests/Cuda/Toolkit/CMakeLists.txt +++ b/Tests/Cuda/Toolkit/CMakeLists.txt @@ -54,3 +54,9 @@ endforeach() add_executable(Toolkit main.cpp) target_link_libraries(Toolkit PRIVATE CUDA::toolkit) + +# cupti is an optional component of the CUDA toolkit +if(TARGET CUDA::cupti) + add_executable(cupti cupti.cpp) + target_link_libraries(cupti PRIVATE CUDA::cupti) +endif() diff --git a/Tests/Cuda/Toolkit/cupti.cpp b/Tests/Cuda/Toolkit/cupti.cpp new file mode 100644 index 0000000..62f7f65 --- /dev/null +++ b/Tests/Cuda/Toolkit/cupti.cpp @@ -0,0 +1,7 @@ +// Only thing we care about is that these headers are found +#include <cupti.h> + +int main() +{ + return 0; +} |