#
#-----------------------------------------------------------------------------
+
IF(USE_ITK)
IF(NOT ITK_FOUND)
# Search ITK
INCLUDE(${ITK_USE_FILE})
CREA_DEFINE( USE_ITK )
CREA_DEFINE( _USE_ITK_ )
- If (${ITK_VERSION_MAJOR} MATCHES "4")
- MESSAGE ( STATUS "* Version = ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}")
- SET(ITK_LIBRARIES
- ${ITK_LIBRARIES})
- MESSAGE ( STATUS "${ITK_LIBRARIES}")
+ If (${ITK_VERSION_MAJOR} MATCHES "4" OR ${ITK_VERSION_MAJOR} MATCHES "5" )
+ MESSAGE ( STATUS "* Version = ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}")
+ SET(ITK_LIBRARIES ${ITK_LIBRARIES})
ELSEIF()
- SET(ITK_LIBRARIES
- ITKCommon ITKIO ITKBasicFilters ITKAlgorithms)
+ SET(ITK_LIBRARIES ITKCommon ITKIO ITKBasicFilters ITKAlgorithms)
ENDIF()
MARK_AS_ADVANCED(ITK_DIR)
ELSE(ITK_FOUND)