comparison Resources/CMake/DcmtkConfiguration.cmake @ 734:8c29c1056d45

automatic search of the dicom dictionaries in CMake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 28 Feb 2014 16:55:09 +0100
parents b8322fe3bdba
children ee0d5abf7958
comparison
equal deleted inserted replaced
733:29982cfc5009 734:8c29c1056d45
1 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR}") 1 # Lookup for DICOM dictionaries, if none is specified by the user
2 if (DCMTK_DICTIONARY_DIR STREQUAL "")
3 find_path(DCMTK_DICTIONARY_DIR_AUTO dicom.dic
4 /usr/share/dcmtk
5 /usr/share/libdcmtk2
6 )
7
8 message("Autodetected path to the DICOM dictionaries: ${DCMTK_DICTIONARY_DIR_AUTO}")
9 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR_AUTO}")
10 else()
11 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR}")
12 endif()
13
14
2 15
3 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) 16 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK)
4 SET(DCMTK_VERSION_NUMBER 360) 17 SET(DCMTK_VERSION_NUMBER 360)
5 SET(DCMTK_SOURCES_DIR ${CMAKE_BINARY_DIR}/dcmtk-3.6.0) 18 SET(DCMTK_SOURCES_DIR ${CMAKE_BINARY_DIR}/dcmtk-3.6.0)
6 DownloadPackage( 19 DownloadPackage(