diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-11-25 21:03:15 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2019-12-16 16:15:12 (GMT) |
commit | e2a5d8374f94c7893109e11173fc770cec8a4683 (patch) | |
tree | 5093bbc3195f66b6c164b991a3552969c894116c /Tests/Cuda/IncludePathNoToolkit | |
parent | 29560bf07b49aee326f555aec53b091e3520294b (diff) | |
download | CMake-e2a5d8374f94c7893109e11173fc770cec8a4683.zip CMake-e2a5d8374f94c7893109e11173fc770cec8a4683.tar.gz CMake-e2a5d8374f94c7893109e11173fc770cec8a4683.tar.bz2 |
FindCUDAToolkit: Improve usage, library set, and tests
Refined the initial design of FindCUDAToolkit and improve it
by adding more library support, more toolkit information and
tests.
Diffstat (limited to 'Tests/Cuda/IncludePathNoToolkit')
-rw-r--r-- | Tests/Cuda/IncludePathNoToolkit/CMakeLists.txt | 11 | ||||
-rw-r--r-- | Tests/Cuda/IncludePathNoToolkit/main.cpp | 8 |
2 files changed, 19 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}) diff --git a/Tests/Cuda/IncludePathNoToolkit/main.cpp b/Tests/Cuda/IncludePathNoToolkit/main.cpp new file mode 100644 index 0000000..c8d5c6b --- /dev/null +++ b/Tests/Cuda/IncludePathNoToolkit/main.cpp @@ -0,0 +1,8 @@ +// Only thing we care about is that these headers are found +#include <cuda.h> +#include <cuda_runtime_api.h> + +int main() +{ + return 0; +} |