Commit 455346c1 authored by Tobias Lasser's avatar Tobias Lasser
Browse files

fix for finding cuda_runtime.h

parent 10de4ab0
Pipeline #154100 passed with stages
in 2 minutes and 11 seconds
......@@ -9,6 +9,9 @@ if (CMAKE_CUDA_COMPILER)
add_subdirectory(projector_kernels)
# necessary to be able to include <cuda_runtime.h>
find_library(CUDART_LIBRARY cudart ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
# set the name of the module
set(ELSA_MODULE_NAME projectors_cuda)
set(ELSA_MODULE_TARGET_NAME elsa_${ELSA_MODULE_NAME})
......@@ -35,7 +38,8 @@ if (CMAKE_CUDA_COMPILER)
$<INSTALL_INTERFACE:include/${ELSA_MODULE_NAME}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
target_include_directories(${ELSA_MODULE_TARGET_NAME}
PUBLIC ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
# require C++17
target_compile_features(${ELSA_MODULE_TARGET_NAME} PUBLIC cxx_std_17)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment