mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-25 01:01:23 +01:00
21 lines
438 B
CMake
21 lines
438 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
simpleCUBLAS.cpp
|
|
)
|
|
|
|
# Add target for simpleCUBLAS
|
|
add_executable(simpleCUBLAS ${SRC_FILES})
|
|
set_target_properties(simpleCUBLAS PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
|
|
|
target_include_directories(simpleCUBLAS PRIVATE
|
|
${CUDAToolkit_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_link_libraries(simpleCUBLAS PRIVATE
|
|
CUDA::cudart
|
|
CUDA::cublas
|
|
)
|