mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-01 20:20:29 +08:00
18 lines
347 B
CMake
18 lines
347 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
main.cpp
|
|
scan_gold.cpp
|
|
scan.cu
|
|
)
|
|
|
|
# Add target for scan
|
|
add_executable(scan ${SRC_FILES})
|
|
set_target_properties(scan PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
|
|
|
target_include_directories(scan PUBLIC
|
|
${CUDAToolkit_INCLUDE_DIRS}
|
|
)
|