Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions Modules/Core/GPUCommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,8 @@ if(ITK_USE_GPU)
set(
ITKGPUCommon_LIBRARIES
ITKGPUCommon
${OpenCL_LIBRARIES}
OpenCL::OpenCL
)
if(APPLE)
list(APPEND ITKGPUCommon_LIBRARIES "-framework OpenCL")
elseif(WINDOWS)
list(
APPEND
ITKGPUCommon_LIBRARIES
cfgmgr32
OneCoreUAP
)
endif()

set(ITKGPUCommon_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
endif()

if(NOT ITK_SOURCE_DIR)
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/GPUCommon/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUCommon_Kernels}" ITKGPUCommon_SRCS)

itk_module_add_library(ITKGPUCommon ${ITKGPUCommon_SRCS})
target_link_libraries(ITKGPUCommon LINK_PUBLIC ${OPENCL_LIBRARIES})
target_link_libraries(ITKGPUCommon LINK_PUBLIC OpenCL::OpenCL)
endif()
2 changes: 0 additions & 2 deletions Modules/Core/GPUFiniteDifference/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ if(NOT ITK_SOURCE_DIR)
endif()

if(ITK_USE_GPU)
set(ITKGPUFiniteDifference_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
set(ITKGPUFiniteDifference_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
set(ITKGPUFiniteDifference_LIBRARIES ITKGPUFiniteDifference)
endif()

Expand Down
1 change: 0 additions & 1 deletion Modules/Core/GPUFiniteDifference/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUFiniteDifference_Kernels}" ITKGPUFiniteDifference_SRCS)

itk_module_add_library(ITKGPUFiniteDifference ${ITKGPUFiniteDifference_SRCS})
target_link_libraries(ITKGPUFiniteDifference LINK_PUBLIC ${OPENCL_LIBRARIES})
endif()
2 changes: 0 additions & 2 deletions Modules/Filtering/GPUAnisotropicSmoothing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ endif()

if(ITK_USE_GPU)
set(ITKGPUAnisotropicSmoothing_LIBRARIES ITKGPUAnisotropicSmoothing)
set(ITKGPUAnisotropicSmoothing_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
set(ITKGPUAnisotropicSmoothing_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
endif()

if(NOT ITK_SOURCE_DIR)
Expand Down
5 changes: 0 additions & 5 deletions Modules/Filtering/GPUAnisotropicSmoothing/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUAnisotropicSmoothing_Kernels}" ITKGPUAnisotropicSmoothing_SRCS)

itk_module_add_library(ITKGPUAnisotropicSmoothing ${ITKGPUAnisotropicSmoothing_SRCS})
target_link_libraries(
ITKGPUAnisotropicSmoothing
LINK_PUBLIC
${OPENCL_LIBRARIES}
)
endif()
2 changes: 0 additions & 2 deletions Modules/Filtering/GPUImageFilterBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ endif()

if(ITK_USE_GPU)
set(ITKGPUImageFilterBase_LIBRARIES ITKGPUImageFilterBase)
set(ITKGPUImageFilterBase_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
set(ITKGPUImageFilterBase_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
endif()

if(NOT ITK_SOURCE_DIR)
Expand Down
1 change: 0 additions & 1 deletion Modules/Filtering/GPUImageFilterBase/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUImageFilterBase_Kernels}" ITKGPUImageFilterBase_SRCS)

itk_module_add_library(ITKGPUImageFilterBase ${ITKGPUImageFilterBase_SRCS})
target_link_libraries(ITKGPUImageFilterBase LINK_PUBLIC ${OPENCL_LIBRARIES})
endif()
2 changes: 0 additions & 2 deletions Modules/Filtering/GPUSmoothing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ endif()

if(ITK_USE_GPU)
set(ITKGPUSmoothing_LIBRARIES ITKGPUSmoothing)
set(ITKGPUSmoothing_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
set(ITKGPUSmoothing_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
endif()

if(NOT ITK_SOURCE_DIR)
Expand Down
1 change: 0 additions & 1 deletion Modules/Filtering/GPUSmoothing/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUSmoothing_Kernels}" ITKGPUSmoothing_SRCS)

itk_module_add_library(ITKGPUSmoothing ${ITKGPUSmoothing_SRCS})
target_link_libraries(ITKGPUSmoothing LINK_PUBLIC ${OPENCL_LIBRARIES})
endif()
1 change: 0 additions & 1 deletion Modules/Filtering/GPUThresholding/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ project(ITKGPUThresholding)
if(ITK_USE_GPU)
set(ITKGPUThresholding_LIBRARIES ITKGPUThresholding)
set(ITKGPUThresholding_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
set(ITKGPUThresholding_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
endif()

itk_module_impl()
1 change: 0 additions & 1 deletion Modules/Filtering/GPUThresholding/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUThresholding_Kernels}" ITKGPUThresholding_SRCS)

itk_module_add_library(ITKGPUThresholding ${ITKGPUThresholding_SRCS})
target_link_libraries(ITKGPUThresholding LINK_PUBLIC ${OPENCL_LIBRARIES})
endif()
5 changes: 0 additions & 5 deletions Modules/Registration/GPUCommon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
project(ITKGPURegistrationCommon)

if(ITK_USE_GPU)
set(ITKGPURegistrationCommon_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
set(ITKGPURegistrationCommon_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
endif()

itk_module_impl()
5 changes: 0 additions & 5 deletions Modules/Registration/GPUPDEDeformable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ project(ITKGPUPDEDeformableRegistration)

if(ITK_USE_GPU)
set(ITKGPUPDEDeformableRegistration_LIBRARIES ITKGPUPDEDeformableRegistration)
set(
ITKGPUPDEDeformableRegistration_SYSTEM_INCLUDE_DIRS
${OPENCL_INCLUDE_DIRS}
)
set(ITKGPUPDEDeformableRegistration_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
endif()

itk_module_impl()
5 changes: 0 additions & 5 deletions Modules/Registration/GPUPDEDeformable/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ if(ITK_USE_GPU)
write_gpu_kernels("${ITKGPUPDEDeformableRegistration_Kernels}" ITKGPUPDEDeformableRegistration_SRCS)

itk_module_add_library(ITKGPUPDEDeformableRegistration ${ITKGPUPDEDeformableRegistration_SRCS})
target_link_libraries(
ITKGPUPDEDeformableRegistration
LINK_PUBLIC
${OPENCL_LIBRARIES}
)
endif()
Loading