Files
cgal/Installation/cmake/modules/CGAL_ITK_support.cmake
T
Laurent Rineau 9262c6a8b6 Re-add CGAL_ITK_support.cmake
That will allow to be compatible with ITK version 4.13 and 5.x.
2023-11-23 17:25:18 +01:00

10 lines
368 B
CMake

if(ITK_FOUND AND NOT TARGET CGAL::ITK_support)
add_library(CGAL::ITK_support INTERFACE IMPORTED)
foreach(itk_target ITKCommon ITKSmoothing ITKImageIntensity)
if(TARGET ${itk_target})
target_link_libraries(CGAL::ITK_support INTERFACE ${itk_target})
endif()
endforeach()
target_compile_definitions(CGAL::ITK_support INTERFACE CGAL_USE_ITK)
endif()