mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-28 02:31:32 +01:00
19 lines
399 B
CMake
19 lines
399 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
histogram256.cu
|
|
histogram64.cu
|
|
histogram_gold.cpp
|
|
main.cpp
|
|
)
|
|
|
|
# Add target for histogram
|
|
add_executable(histogram ${SRC_FILES})
|
|
set_target_properties(histogram PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
|
|
|
target_include_directories(histogram PUBLIC
|
|
${CUDAToolkit_INCLUDE_DIRS}
|
|
)
|