comparison Resources/CMake/DcmtkConfiguration.cmake @ 1769:cb466194f22c

fail if no DICOM dictionary
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Nov 2015 16:37:01 +0100
parents 8c4f1de71f8d
children 6473e4e22d44
comparison
equal deleted inserted replaced
1768:70f544f9c38f 1769:cb466194f22c
1 # Lookup for DICOM dictionaries, if none is specified by the user 1 # Lookup for DICOM dictionaries, if none is specified by the user
2 if (DCMTK_DICTIONARY_DIR STREQUAL "") 2 if (DCMTK_DICTIONARY_DIR STREQUAL "")
3 find_path(DCMTK_DICTIONARY_DIR_AUTO dicom.dic 3 find_path(DCMTK_DICTIONARY_DIR_AUTO dicom.dic
4 /usr/share/dcmtk 4 /usr/share/dcmtk
5 /usr/share/libdcmtk2 5 /usr/share/libdcmtk2
6 /usr/share/libdcmtk4
6 /usr/local/share/dcmtk 7 /usr/local/share/dcmtk
7 ) 8 )
9
10 if (${DCMTK_DICTIONARY_DIR_AUTO} MATCHES "DCMTK_DICTIONARY_DIR_AUTO-NOTFOUND")
11 message(FATAL_ERROR "Cannot locate the DICOM dictionary on this system")
12 endif()
8 13
9 message("Autodetected path to the DICOM dictionaries: ${DCMTK_DICTIONARY_DIR_AUTO}") 14 message("Autodetected path to the DICOM dictionaries: ${DCMTK_DICTIONARY_DIR_AUTO}")
10 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR_AUTO}") 15 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR_AUTO}")
11 else() 16 else()
12 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR}") 17 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR}")