comparison Resources/CMake/DcmtkConfiguration.cmake @ 1883:71356f41ec2f

additional locations for dicom.dic
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Dec 2015 09:04:50 +0100
parents 3dcf5c0734c9
children 7bef560b9782 501769757bf9
comparison
equal deleted inserted replaced
1882:5cf2bd0abfa2 1883:71356f41ec2f
189 if (EXISTS "${DCMTK_DIR}/config/cfunix.h") 189 if (EXISTS "${DCMTK_DIR}/config/cfunix.h")
190 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/cfunix.h") 190 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/cfunix.h")
191 elseif (EXISTS "${DCMTK_DIR}/config/osconfig.h") # This is for Arch Linux 191 elseif (EXISTS "${DCMTK_DIR}/config/osconfig.h") # This is for Arch Linux
192 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/osconfig.h") 192 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/osconfig.h")
193 else() 193 else()
194 message(FATAL_ERROR "Please install libdcmtk1-dev") 194 message(FATAL_ERROR "Please install libdcmtk*-dev")
195 endif() 195 endif()
196 196
197 # Autodetection of the version of DCMTK 197 # Autodetection of the version of DCMTK
198 file(STRINGS 198 file(STRINGS
199 "${DCMTK_CONFIGURATION_FILE}" 199 "${DCMTK_CONFIGURATION_FILE}"
218 if (NOT DCMTK_USE_EMBEDDED_DICTIONARIES) 218 if (NOT DCMTK_USE_EMBEDDED_DICTIONARIES)
219 # Lookup for DICOM dictionaries, if none is specified by the user 219 # Lookup for DICOM dictionaries, if none is specified by the user
220 if (DCMTK_DICTIONARY_DIR STREQUAL "") 220 if (DCMTK_DICTIONARY_DIR STREQUAL "")
221 find_path(DCMTK_DICTIONARY_DIR_AUTO dicom.dic 221 find_path(DCMTK_DICTIONARY_DIR_AUTO dicom.dic
222 /usr/share/dcmtk 222 /usr/share/dcmtk
223 /usr/share/libdcmtk1
223 /usr/share/libdcmtk2 224 /usr/share/libdcmtk2
225 /usr/share/libdcmtk3
224 /usr/share/libdcmtk4 226 /usr/share/libdcmtk4
227 /usr/share/libdcmtk5
228 /usr/share/libdcmtk6
225 /usr/local/share/dcmtk 229 /usr/local/share/dcmtk
226 ) 230 )
227 231
228 if (${DCMTK_DICTIONARY_DIR_AUTO} MATCHES "DCMTK_DICTIONARY_DIR_AUTO-NOTFOUND") 232 if (${DCMTK_DICTIONARY_DIR_AUTO} MATCHES "DCMTK_DICTIONARY_DIR_AUTO-NOTFOUND")
229 message(FATAL_ERROR "Cannot locate the DICOM dictionary on this system") 233 message(FATAL_ERROR "Cannot locate the DICOM dictionary on this system")