Commit a91b283e authored by saubatn's avatar saubatn
Browse files

NEW Provide support for ITK 4.5.x on Windows MSVC2012/2013 and Linux.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1566 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 479848a3
......@@ -549,7 +549,163 @@ macro(camitk_extension)
# ITK 4.5.x (mostly 4.5.1)
elseif((${ITK_VERSION} VERSION_GREATER "4.4") AND (${ITK_VERSION} VERSION_LESS "4.6"))
if(MSVC)
message(FATAL_ERROR "ITK version 4.5.x is not supported yet on Visual Studio compiler. You may file a feature request: https://bugzilla-timc.imag.fr/")
if(MSVC90 OR MSVC10) #ITK 3.x only works with VS 2008 / 2010
message(FATAL_ERROR "ITK version ${ITK_VERSION} is not compatible with Visual Studio 2008 or 2010. Please install ITK version 3.20.1")
elseif(MSVC11 OR MSVC12) # Visual Studion 2012/2013
link_directories(${ITK_DIR}/../..)
set(ITK_LIBRARIES
optimized TKIOBioRad-4.5.lib
optimized ITKIOStimulate-4.5.lib
optimized itkpng-4.5.lib
debug ITKBiasCorrection-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOBMP-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOTIFF-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKPolynomials-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKBiasCorrection-4.5.lib
optimized ITKIOBMP-4.5.lib
optimized ITKIOTIFF-4.5.lib
optimized ITKPolynomials-4.5.lib
debug ITKBioCell-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOCSV-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOTransformBase-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKQuadEdgeMesh-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKBioCell-4.5.lib
optimized ITKIOCSV-4.5.lib
optimized ITKIOTransformBase-4.5.lib
optimized ITKQuadEdgeMesh-4.5.lib
debug ITKCommon-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOGDCM-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOTransformHDF5-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKSpatialObjects-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKCommon-4.5.lib
optimized ITKIOGDCM-4.5.lib
optimized ITKIOTransformHDF5-4.5.lib
optimized ITKSpatialObjects-4.5.lib
debug ITKDICOMParser-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug debug ITKIOGE-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOTransformInsightLegacy-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKStatistics-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKDICOMParser-4.5.lib
optimized ITKIOGE-4.5.lib
optimized ITKIOTransformInsightLegacy-4.5.lib
optimized ITKStatistics-4.5.lib
debug itkdouble-conversion-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOGIPL-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOTransformMatlab-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itksys-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkdouble-conversion-4.5.lib
optimized ITKIOGIPL-4.5.lib
optimized ITKIOTransformMatlab-4.5.lib
optimized itksys-4.5.lib
debug ITKEXPAT-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOHDF5-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOVTK-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itktiff-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKEXPAT-4.5.lib
optimized ITKIOHDF5-4.5.lib
optimized ITKIOVTK-4.5.lib
optimized itktiff-4.5.lib
debug ITKFEM-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOImageBase-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOXML-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkv3p_lsqr-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKFEM-4.5.lib
optimized ITKIOImageBase-4.5.lib
optimized ITKIOXML-4.5.lib
optimized itkv3p_lsqr-4.5.lib
debug itkgdcmCommon-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOIPL-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkjpeg-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkv3p_netlib-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmCommon-4.5.lib
optimized ITKIOIPL-4.5.lib
optimized itkjpeg-4.5.lib
optimized itkv3p_netlib-4.5.lib
debug itkgdcmDICT-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOJPEG-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKKLMRegionGrowing-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkvcl-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmDICT-4.5.lib
optimized ITKIOJPEG-4.5.lib
optimized ITKKLMRegionGrowing-4.5.lib
optimized itkvcl-4.5.lib
debug itkgdcmDSED-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOLSM-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKLabelMap-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKVideoCore-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmDSED-4.5.lib
optimized ITKIOLSM-4.5.lib
optimized ITKLabelMap-4.5.lib
optimized ITKVideoCore-4.5.lib
optimized itkgdcmIOD-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKIOMesh-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKMesh-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKVideoIO-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmIOD-4.5.lib
optimized ITKIOMesh-4.5.lib
optimized ITKMesh-4.5.lib
optimized ITKVideoIO-4.5.lib
debug itkgdcmjpeg12-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOMeta-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKMetaIO-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkvnl-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkgdcmjpeg12-4.5.lib
optimized ITKIOMeta-4.5.lib
optimized ITKMetaIO-4.5.lib
optimized itkvnl-4.5.lib
debug itkgdcmjpeg16-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOMRC-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkNetlibSlatec-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkvnl_algo-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmjpeg16-4.5.lib
optimized ITKIOMRC-4.5.lib
optimized itkNetlibSlatec-4.5.lib
optimized itkvnl_algo-4.5.lib
debug itkgdcmjpeg8-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIONIFTI-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKniftiio-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKVNLInstantiation-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmjpeg8-4.5.lib
optimized ITKIONIFTI-4.5.lib
optimized ITKniftiio-4.5.lib
optimized ITKVNLInstantiation-4.5.lib
debug itkgdcmMSFF-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIONRRD-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKNrrdIO-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKVTK-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkgdcmMSFF-4.5.lib
optimized ITKIONRRD-4.5.lib
optimized ITKNrrdIO-4.5.lib
optimized ITKVTK-4.5.lib
debug ITKgiftiio-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOPNG-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkopenjpeg-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKWatersheds-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized ITKgiftiio-4.5.lib
optimized ITKIOPNG-4.5.lib
optimized itkopenjpeg-4.5.lib
optimized ITKWatersheds-4.5.lib
debug itkhdf5-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOSiemens-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKOptimizers-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkzlib-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkhdf5-4.5.lib
optimized ITKIOSiemens-4.5.lib
optimized ITKOptimizers-4.5.lib
optimized itkzlib-4.5.lib
debug itkhdf5_cpp-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOSpatialObjects-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKPath-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKznz-4.5${CAMITK_DEBUG_POSTFIX}.lib
optimized itkhdf5_cpp-4.5.lib
optimized ITKIOSpatialObjects-4.5.lib
optimized ITKPath-4.5.lib
optimized ITKznz-4.5.lib
debug ITKIOBioRad-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug ITKIOStimulate-4.5${CAMITK_DEBUG_POSTFIX}.lib
debug itkpng-4.5${CAMITK_DEBUG_POSTFIX}.lib
)
endif() # MSVC
elseif(MINGW)
message(FATAL_ERROR "ITK version 4.5.x is not supported yet for MinGW compiler. You may file a feature request: https://bugzilla-timc.imag.fr/")
elseif(APPLE)
......@@ -631,7 +787,7 @@ macro(camitk_extension)
itkzlib
)
else() #Linux
message(FATAL_ERROR "ITK version 4.5.x is not supported yet for Linux platform. You may file a feature request: https://bugzilla-timc.imag.fr/")
# ITK_LIBRARIES is already set
endif()
# ITK version > 4.5 (mostly ITK 5.x)
......
Supports Markdown
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