19 lines
390 B
Text
19 lines
390 B
Text
|
project(${CMAKE_PROJECT_NAME}_cuda_lib CUDA CXX)
|
||
|
|
||
|
set(HEADER_FILES
|
||
|
hello_world.h
|
||
|
)
|
||
|
set(SOURCE_FILES
|
||
|
hello_world.cu
|
||
|
)
|
||
|
|
||
|
# The library contains header and source files.
|
||
|
add_library(${CMAKE_PROJECT_NAME}_cuda_lib STATIC
|
||
|
${SOURCE_FILES}
|
||
|
${HEADER_FILES}
|
||
|
)
|
||
|
|
||
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||
|
target_compile_options(${CMAKE_PROJECT_NAME}_cuda_lib PRIVATE -Wno-gnu-line-marker)
|
||
|
endif()
|