From 7eb8ed48509d44c5685ecd3e23231762c815dacc Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 3 Feb 2012 07:57:12 +0100 Subject: [PATCH] Check if itk was compiled with system_gdcm --- cmake/dependencies.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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) + -- 2.47.1