mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-24 00:31:23 +01:00
20 lines
511 B
CMake
20 lines
511 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
simpleAssert.cpp
|
|
)
|
|
|
|
# Add sample target executable
|
|
add_executable(simpleAssert_nvrtc ${SRC_FILES})
|
|
target_link_libraries(simpleAssert_nvrtc PRIVATE
|
|
CUDA::nvrtc
|
|
)
|
|
|
|
# Copy clock_kernel.cu to the output directory
|
|
add_custom_command(TARGET simpleAssert_nvrtc POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${CMAKE_CURRENT_SOURCE_DIR}/simpleAssert_kernel.cu ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|