]> Creatis software - gdcm.git/commitdiff
ENH: Adding an option (hidden) to not install the gdcm dicts
authormalaterre <malaterre>
Fri, 12 May 2006 15:34:02 +0000 (15:34 +0000)
committermalaterre <malaterre>
Fri, 12 May 2006 15:34:02 +0000 (15:34 +0000)
Dicts/CMakeLists.txt

index 1ea0994f2f5f8a439c5f2372d62061c593b8b495..f6ba194f262695f8b5fd5b403f4c19b3375a8684 100644 (file)
@@ -106,16 +106,19 @@ ENDFOREACH(line)
 # ... Set the dictionnary
 SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY} \n {0,0,0,0,0}")
 
-CONFIGURE_FILE("${GDCM_SOURCE_DIR}/src/gdcmDefaultDicts.cxx.in" 
+CONFIGURE_FILE("${GDCM_SOURCE_DIR}/src/gdcmDefaultDicts.cxx.in"
   "${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx" IMMEDIATE)
 
 #-----------------------------------------------------------------------------
-INSTALL_FILES(${GDCM_INSTALL_DATA_DIR} .dic
-  dicomV3
-  dicomVR
-  dicomTS
-  DicomDir
-  DictGroupName
-  gdcm
-)
+# For now GDCM_INSTALL_NO_DICTIONARY is a hidden variables
+IF(NOT GDCM_INSTALL_NO_DICTIONARY)
+  INSTALL_FILES(${GDCM_INSTALL_DATA_DIR} .dic
+    dicomV3
+    dicomVR
+    dicomTS
+    DicomDir
+    DictGroupName
+    gdcm
+    )
+ENDIF(NOT GDCM_INSTALL_NO_DICTIONARY)