mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-29 11:03:08 +01:00
26 lines
615 B
CMake
26 lines
615 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
cuda_drvapi_dynlink.c
|
|
matrixMulDynlinkJIT.cpp
|
|
matrixMul_gold.cpp
|
|
matrixMul_kernel_32_ptxdump.c
|
|
matrixMul_kernel_64_ptxdump.c
|
|
)
|
|
|
|
|
|
|
|
# Add target for matrixMulDynlinkJIT
|
|
add_executable(matrixMulDynlinkJIT ${SRC_FILES})
|
|
set_target_properties(matrixMulDynlinkJIT PROPERTIES
|
|
CUDA_SEPARABLE_COMPILATION ON
|
|
POSITION_INDEPENDENT_CODE OFF
|
|
)
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
|
|
target_link_libraries(matrixMulDynlinkJIT PUBLIC
|
|
CUDA::cudart
|
|
CUDA::cuda_driver
|
|
)
|