We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08b9f22 commit 740afe5Copy full SHA for 740afe5
src/Registration/cReg/CMakeLists.txt
@@ -78,6 +78,12 @@ if (NIFTYREG_BUILT_WITH_CUDA)
78
target_link_libraries(Reg PUBLIC ${CUDA_CUDART_LIBRARY})
79
endif()
80
81
+# If niftyreg was bulit with OpenCL
82
+if (NIFTYREG_BUILT_WITH_OPENCL)
83
+ find_package(OpenCL REQUIRED)
84
+ target_link_libraries(REG PUBLIC OpenCL::OpenCL)
85
+endif()
86
+
87
# Add boost library dependencies
88
if((CMAKE_VERSION VERSION_LESS 3.5.0) OR (NOT _Boost_IMPORTED_TARGETS))
89
# This is harder than it should be on older CMake versions to be able to cope with
0 commit comments