]> Creatis software - gdcm.git/commitdiff
ENH: Minor cleanup
authormalaterre <malaterre>
Mon, 27 Jun 2005 00:28:32 +0000 (00:28 +0000)
committermalaterre <malaterre>
Mon, 27 Jun 2005 00:28:32 +0000 (00:28 +0000)
Dicts/CMakeLists.txt

index a88761282e150d9deeabf17380d325bffe261207..05442e2c5d11c09705bd34bcadef90b0e32e476c 100644 (file)
@@ -7,15 +7,9 @@ SET(ALL_DICTS
   dicomV3.dic
   Papyrus.dic
   NIH.dic     #the forbidden one...
+  SPI.dic
   )
 
-# The following line make sure we are not appending on an already existing file
-#FILE(WRITE "${GDCM_BINARY_DIR}/Dicts/gdcm.dic" "")
-#FOREACH(dict ${ALL_DICTS})
-#  FILE(READ "${GDCM_SOURCE_DIR}/Dicts/${dict}" dict_append)
-#  FILE(APPEND "${GDCM_BINARY_DIR}/Dicts/gdcm.dic" ${dict_append})
-#ENDFOREACH(dict)
-
 # Better solution
 SET(TEST_DICT_BODY)
 FOREACH(dict ${ALL_DICTS})
@@ -40,23 +34,9 @@ FOREACH(line ${ENT})
   STRING(REGEX REPLACE
     "^([0-9a-f][0-9a-f][0-9a-f][0-9a-f]) ([0-9a-f][0-9a-f][0-9a-f][0-9a-f]) ([A-Z]+) ([1-9n-]+) (.*)$"
     "   {0x\\1, 0x\\2, \"\\3\" , \"\\4\" , \"\\5\"}, " nline "${line}")
-  #MESSAGE( "${nline}" )
   SET(DICOM_DATA_DICTIONARY "${DICOM_DATA_DICTIONARY}\n${nline}")
 ENDFOREACH(line)
 
-
-#FILE(READ "dicomV3PhilipsIntera.dic" ENT)
-#STRING(REGEX REPLACE "\r?\n" ";" ENT "${ENT}")
-#SET(DICOM_DATA_DICTIONARY "")
-#FOREACH(line ${ENT})
-#  STRING(REGEX REPLACE
-#    "^([0-9a-f][0-9a-f][0-9a-f][0-9a-f]) ([0-9a-f][0-9a-f][0-9a-f][0-9a-f]) ([A-Z]+) ([1-9n-]+) (.*)$"
-#    "   {0x\\1, 0x\\2, \"\\3\" , \"\\4\" , \"\\5\"}, " nline "${line}")
-#  #SET(DICOM_DATA_DICTIONARY "${DICOM_DATA_DICTIONARY}\n${nline}")
-#  MESSAGE( "${nline}" )
-#ENDFOREACH(line)
-
-
 SET(DICOM_DATA_DICTIONARY "${DICOM_DATA_DICTIONARY} \n {0,0,0,0,0}")
 
 #-----------------------------------------------------------------------------
@@ -118,11 +98,6 @@ ENDFOREACH(line)
 # ... Set the dictionnary
 SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY} \n {0,0,0,0}")
 
-#FOREACH(file dicomV3.dic dicomTS.dic dicomVR.dic DicomDir.dic DictGroupName.dic)
-#  CONFIGURE_FILE("${GDCM_SOURCE_DIR}/Dicts/${file}"
-#    "${GDCM_BINARY_DIR}/Dicts/${file}.out")
-#ENDFOREACH(file)
-
 CONFIGURE_FILE("${GDCM_SOURCE_DIR}/src/gdcmDefaultDicts.cxx.in" 
   "${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx" IMMEDIATE)