From f5a0fef3aab1f9a58f013d4a5c4a0d61daa56841 Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 11 Feb 2005 18:12:47 +0000 Subject: [PATCH] BUG: Apparently when you cvs up in DOS mode the .dic files it creates file with ctrlM+EOF, thus ctrlM was being taken into account and this is pretty bad in a c++ code... --- Dicts/CMakeLists.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Dicts/CMakeLists.txt b/Dicts/CMakeLists.txt index 4e29811d..9df8fb6e 100644 --- a/Dicts/CMakeLists.txt +++ b/Dicts/CMakeLists.txt @@ -2,11 +2,11 @@ # DICOM dictionary stuff -INSTALL_FILES(${GDCM_DATA_DIR} FILES - dicomV3.dic - dicomVR.dic - dicomTS.dic - DicomDir.dic +INSTALL_FILES(${GDCM_DATA_DIR} .dic + dicomV3 + dicomVR + dicomTS + DicomDir ) # Nice trick to avoid creating a .h file each time we compile gdcm @@ -21,12 +21,12 @@ 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}") + "^([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?]+) ([A-Za-z0-9()'/, ?.&-]*).*$" + " {0x\\1, 0x\\2, \"\\3\" , \"\\4\" , \"\\5\"}, " nline "${line}") SET(DICOM_DATA_DICTIONARY "${DICOM_DATA_DICTIONARY}\n${nline}") ENDFOREACH(line) -SET(DICOM_DATA_DICTIONARY "${DICOM_DATA_DICTIONARY} \n { 0,0,0,0,0 }") +SET(DICOM_DATA_DICTIONARY "${DICOM_DATA_DICTIONARY} \n {0,0,0,0,0}") FILE(READ "dicomTS.dic" ENT_TS) STRING(REGEX REPLACE "\n" ";" ENT_TS "${ENT_TS}") @@ -59,12 +59,12 @@ SET(DICOM_DIR_DICTIONARY "") FOREACH(line ${ENT_DIR}) STRING(REGEX REPLACE - "^(metaElem|patientElem|studyElem|serieElem|imageElem) *([a-f0-9]+) ([a-f0-9]+) [\"](.*)[\"](.*)$" - " { \"\\1\" , 0x\\2 , 0x\\3 , \"\\4\" }, \\5" nline "${line}") + "^(metaElem|patientElem|studyElem|serieElem|imageElem) *([a-f0-9]+) ([a-f0-9]+) [\"](.*)[\"]([A-Za-z'/ ].*)$" + " {\"\\1\" , 0x\\2 , 0x\\3 , \"\\4\"}, \\5" nline "${line}") SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY}\n${nline}") ENDFOREACH(line) -SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY} \n { 0,0,0,0 }") +SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY} \n {0,0,0,0}") # See above FOREACH(file dicomV3.dic dicomTS.dic dicomVR.dic DicomDir.dic) -- 2.45.2