From: David Sarrut Date: Fri, 3 Feb 2012 06:57:12 +0000 (+0100) Subject: Check if itk was compiled with system_gdcm X-Git-Tag: v1.4.0~229^2~21 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7eb8ed48509d44c5685ecd3e23231762c815dacc;p=clitk.git Check if itk was compiled with system_gdcm --- diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 4396d09..1ba42ec 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -54,3 +54,22 @@ IF (NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO) ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") ENDIF() #========================================================= + + +#========================================================= +### Check if ITK was compiled with SYSTEM_GDCM = ON +SET(CLITK_USE_SYSTEM_GDCM FALSE) +IF(ITK_VERSION_MAJOR LESS "4") + IF(ITK_USE_SYSTEM_GDCM) + SET(CLITK_USE_SYSTEM_GDCM TRUE) + ENDIF(ITK_USE_SYSTEM_GDCM) +ELSE(ITK_VERSION_MAJOR LESS "4") + SET(GDCM_INCLUDE_INSTALL ".*include/gdcm-.*") + SET(GDCM_INCLUDE_BUILD ".*/Source/MediaStorageAndFileFormat") + IF(NOT ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_BUILD}) + SET(CLITK_USE_SYSTEM_GDCM TRUE) + ENDIF() +ENDIF(ITK_VERSION_MAJOR LESS "4") + +#DD(CLITK_USE_SYSTEM_GDCM) +