]> Creatis software - gdcm.git/blobdiff - Dicts/CMakeLists.txt
BUG: Solve seg fault with SerieHelper by properly using sort algorithm when needed...
[gdcm.git] / Dicts / CMakeLists.txt
index 098f6c85c6b8f6c00e750303a6492eff67503862..4e29811d10a275dd31828ef59efd81cb205e38b4 100644 (file)
@@ -21,7 +21,7 @@ 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]+) ([A-Z?]+) (.*)$"
+    "^([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}")
 ENDFOREACH(line)
@@ -67,6 +67,10 @@ ENDFOREACH(line)
 SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY} \n { 0,0,0,0 }")
 
 # See above
+FOREACH(file dicomV3.dic  dicomTS.dic dicomVR.dic DicomDir.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)