diff --git a/Modules/ThirdParty/ITK/otb-module-init.cmake b/Modules/ThirdParty/ITK/otb-module-init.cmake index 3c45ad0ba783238ccd8b75c9d387e5a2a19c280e..0cf743e22efa5e681d75be1395b530aaf4ee1f91 100644 --- a/Modules/ThirdParty/ITK/otb-module-init.cmake +++ b/Modules/ThirdParty/ITK/otb-module-init.cmake @@ -1,5 +1,86 @@ -find_package ( ITK REQUIRED ) -# TODO : ensure all necessary modules are enabled with COMPONENTS +set(OTBITK_ITK_REQUIRED_MODULE_LIST + ITKCommon + ITKFiniteDifference + ITKGPUCommon + ITKGPUFiniteDifference + ITKImageAdaptors + ITKImageFunction + ITKMesh + ITKQuadEdgeMesh + ITKSpatialObjects + #ITKTestKernel + ITKTransform + + ITKAnisotropicSmoothing + ITKAntiAlias + ITKBiasCorrection + ITKBinaryMathematicalMorphology + ITKColormap + ITKConvolution + ITKCurvatureFlow + ITKDeconvolution + ITKDenoising + #ITKDiffusionTensorImage + ITKDisplacementField + ITKDistanceMap + ITKFastMarching + ITKFFT + ITKGPUAnisotropicSmoothing + ITKGPUImageFilterBase + ITKGPUSmoothing + ITKGPUThresholding + ITKImageCompare + ITKImageCompose + ITKImageFeature + ITKImageFilterBase + ITKImageFusion + ITKImageGradient + ITKImageGrid + ITKImageIntensity + ITKImageLabel + ITKImageSources + ITKImageStatistics + ITKLabelMap + ITKMathematicalMorphology + ITKPath + ITKQuadEdgeMeshFiltering + ITKSmoothing + ITKSpatialFunction + ITKThresholding + + ITKEigen + #ITKFEM + ITKNarrowBand + ITKNeuralNetworks + ITKOptimizers + ITKOptimizersv4 + ITKPolynomials + ITKStatistics + + ITKRegistrationCommon + #ITKFEMRegistration + ITKGPURegistrationCommon + ITKGPUPDEDeformableRegistration + ITKMetricsv4 + ITKPDEDeformableRegistration + ITKRegistrationMethodsv4 + + #ITKBioCell + ITKClassifiers + ITKConnectedComponents + ITKDeformableMesh + ITKKLMRegionGrowing + ITKLabelVoting + ITKLevelSets + ITKLevelSetsv4 + #ITKLevelSetsv4Visualization + ITKMarkovRandomFieldsClassifiers + ITKRegionGrowing + ITKSignedDistanceFunction + ITKVoronoi + ITKWatersheds) + +find_package ( ITK COMPONENTS ${OTBITK_ITK_REQUIRED_MODULE_LIST}) # set ( ITK_NO_IO_FACTORY_REGISTER_MANAGER TRUE ) # include (${ITK_USE_FILE})