summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-12-17 16:10:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-12-17 16:13:50 (GMT)
commit3289322e4f05ef4f092d6ed0bc0b57d66c911c64 (patch)
treeac22d94e26031fd7010b26e92b908b1bf859e65f /Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt
parent1369db740697eeb82b950f2e2f814bfa33351d94 (diff)
parentd484a3c4d8f0bed1da42e17126bac8f7840463ef (diff)
downloadCMake-3289322e4f05ef4f092d6ed0bc0b57d66c911c64.zip
CMake-3289322e4f05ef4f092d6ed0bc0b57d66c911c64.tar.gz
CMake-3289322e4f05ef4f092d6ed0bc0b57d66c911c64.tar.bz2
Merge topic 'FindCUDAToolkit-module'
d484a3c4d8 FindCUDAToolkit: correct searches for Toolkit components e2a5d8374f FindCUDAToolkit: Improve usage, library set, and tests 29560bf07b FindCUDAToolkit: Import targets for toolkit libraries 2c0ff263b4 FindCUDAToolkit: Add module to find the CUDA Toolkit 12d324e55d CUDA: Persist SIZEOF_VOID_P and PLATFORM_ABI Acked-by: Kitware Robot <kwrobot@kitware.com> Rejected-by: Brad King <brad.king@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !4093
Diffstat (limited to 'Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt')
-rw-r--r--Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt b/Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt
new file mode 100644
index 0000000..7be1561
--- /dev/null
+++ b/Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 3.8)
+project (IncludePathNoToolkit CXX CUDA)
+
+#Goal for this example:
+# Validate that between the CXX implicit include directories and the
+# CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES directories we can find
+# the cuda runtime headers
+
+add_executable(IncludePathNoToolkit main.cpp)
+target_include_directories(IncludePathNoToolkit PRIVATE
+ ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})