mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
e2a5d8374f
Refined the initial design of FindCUDAToolkit and improve it by adding more library support, more toolkit information and tests.
12 lines
435 B
CMake
12 lines
435 B
CMake
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})
|