On Fedora, IKT is in the cmake/InsightToolkit directory

This commit is contained in:
Laurent Rineau 2023-02-23 14:44:55 +01:00
parent e9710fa9c2
commit bbb5e1b874
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ if(TARGET CGAL::CGAL_ImageIO)
target_link_libraries(mesh_3D_image_variable_size
PUBLIC CGAL::Eigen3_support)
find_package(ITK QUIET COMPONENTS ITKCommon ITKThresholding ITKSmoothing ITKImageIntensity)
find_package(ITK NAMES ITK InsightToolkit QUIET COMPONENTS ITKCommon ITKThresholding ITKSmoothing ITKImageIntensity)
if(ITK_FOUND)
include(CGAL_ITK_support)
create_single_source_cgal_program("mesh_3D_weighted_image.cpp")

View File

@ -28,7 +28,7 @@ target_link_libraries(
${OPENGL_gl_LIBRARY})
target_include_directories(mesh_3_plugin PRIVATE include)
find_package(ITK QUIET COMPONENTS ITKCommon ITKThresholding ITKSmoothing ITKImageIntensity)
find_package(ITK NAMES ITK InsightToolkit QUIET COMPONENTS ITKCommon ITKThresholding ITKSmoothing ITKImageIntensity)
if(ITK_FOUND)
include(CGAL_ITK_support)
target_link_libraries(mesh_3_plugin PUBLIC CGAL::ITK_support)