Skip to content

Commit

Permalink
Merge pull request #7 from LucasGandel/cuda_include_dirs
Browse files Browse the repository at this point in the history
COMP: Add CUDA include dirs to CudaCommon_INCLUDE_DIRS
  • Loading branch information
SimonRit committed Jan 17, 2022
2 parents deaedf2 + 8e2a7dc commit 2999fc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(NOT ITK_SOURCE_DIR)
endif()

set(CudaCommon_LIBRARIES CudaCommon)
set(CudaCommon_INCLUDE_DIRS ${CudaCommon_SOURCE_DIR}/include)
set(CudaCommon_INCLUDE_DIRS ${CudaCommon_SOURCE_DIR}/include ${CUDAToolkit_INCLUDE_DIRS})

# --------------------------------------------------------
# Find ITK (required)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ set(CudaCommon_Kernels

itk_module_add_library(CudaCommon ${CudaCommon_SRCS} ${CudaCommon_Kernels})
target_link_libraries(CudaCommon LINK_PUBLIC CUDA::cudart CUDA::cuda_driver)
target_include_directories(CudaCommon PUBLIC ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
target_include_directories(CudaCommon PUBLIC ${CUDAToolkit_INCLUDE_DIRS})
set_property(TARGET CudaCommon PROPERTY CUDA_STANDARD ${CMAKE_CXX_STANDARD})

0 comments on commit 2999fc3

Please sign in to comment.