]> Creatis software - clitk.git/commitdiff
Check if itk was compiled with system_gdcm
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 3 Feb 2012 06:57:12 +0000 (07:57 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Thu, 30 May 2013 13:30:19 +0000 (15:30 +0200)
cmake/dependencies.cmake

index 4396d093127c0ee6016ff35c72a67ff288097d85..1ba42ec4568fb48fc16e9525c3e74f16578e6bba 100644 (file)
@@ -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)
+