Commit 1f2404a4 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Issue #263: Updated itk module file to make sure it found ITK version >= 4.

Also link only to needed ITK modules to reduce linking time.
parent c1b0f213
# CMake file for ITK module
FIND_PACKAGE (ITK REQUIRED)# ITKCommon ITKIOImageBase ITKFilters)
FIND_PACKAGE (ITK REQUIRED
ITKCommon
ITKIOImageBase
ITKSmoothing
ITKImageFeature
ITKAnisotropicSmoothing
ITKMathematicalMorphology
ITKBinaryMathematicalMorphology
)
IF(ITK_FOUND)
#MESSAGE(STATUS ${ITK_INCLUDE_DIRS})
#MESSAGE(STATUS ${ITK_LIBRARIES})
......@@ -11,7 +20,11 @@ IF(ITK_FOUND)
#SET(ThisModIncludeDirs ${ITK_INCLUDE_DIRS})
#SET(ThisModExternalLibs ${ITK_LIBRARIES})
MESSAGE(STATUS " Found ITK library")
IF("${ITK_VERSION_MAJOR}" LESS 4)
MESSAGE(FATAL_ERROR "Found ITK Version ${ITK_VERSION_MAJOR} < 4. CAMPVis needs ITK version >= 4.")
ELSE()
MESSAGE(STATUS " Found ITK library")
ENDIF()
ELSE(ITK_FOUND)
MESSAGE(FATAL_ERROR "Could not locate ITK.")
ENDIF(ITK_FOUND)
......@@ -28,8 +41,3 @@ FILE(GLOB ThisModHeaders RELATIVE ${ModulesDir}
modules/itk/tools/*.h
modules/itk/core/*.h
)
# files for the core
#FILE(GLOB ThisModCoreHeaders RELATIVE ${ModulesDir}
# modules/itk/core/*.h
#)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment