mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-24 08:41:23 +01:00
13 lines
289 B
CMake
13 lines
289 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
scalarProd_cpu.cpp
|
|
scalarProd.cu
|
|
)
|
|
|
|
# Add target for scalarProd
|
|
add_executable(scalarProd ${SRC_FILES})
|
|
set_target_properties(scalarProd PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|