Mercurial > hg > orthanc
comparison Resources/CMake/DcmtkConfiguration.cmake @ 2157:f75611abd407
cmake option USE_DCMTK_361_PRIVATE_DIC
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Nov 2016 15:39:10 +0100 |
parents | cbebc5d072b0 |
children | 8b51b133bb8b |
comparison
equal
deleted
inserted
replaced
2155:86089e777691 | 2157:f75611abd407 |
---|---|
34 endif() | 34 endif() |
35 | 35 |
36 DownloadPackage(${DCMTK_MD5} ${DCMTK_URL} "${DCMTK_SOURCES_DIR}") | 36 DownloadPackage(${DCMTK_MD5} ${DCMTK_URL} "${DCMTK_SOURCES_DIR}") |
37 | 37 |
38 | 38 |
39 if (FirstRun AND NOT USE_DCMTK_361) | 39 if (FirstRun AND |
40 # If using DCMTK 3.6.0, backport the "private.dic" file from DCMTK | 40 NOT USE_DCMTK_361) |
41 # 3.6.1 snapshot. This adds support for more private tags, and | 41 if (USE_DCMTK_361_PRIVATE_DIC) |
42 # fixes some import problems with Philips MRI Achieva. | 42 # If using DCMTK 3.6.0, backport the "private.dic" file from DCMTK |
43 message("Using the dictionary of private tags from DCMTK 3.6.1") | 43 # 3.6.1 snapshot. This adds support for more private tags, and |
44 configure_file( | 44 # fixes some import problems with Philips MRI Achieva. |
45 ${ORTHANC_ROOT}/Resources/Patches/dcmtk-3.6.1-private.dic | 45 message("Using the dictionary of private tags from DCMTK 3.6.1") |
46 ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic | 46 configure_file( |
47 COPYONLY) | 47 ${ORTHANC_ROOT}/Resources/Patches/dcmtk-3.6.1-private.dic |
48 ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic | |
49 COPYONLY) | |
50 else() | |
51 message("Using the dictionary of private tags from DCMTK 3.6.0") | |
52 endif() | |
48 endif() | 53 endif() |
49 | 54 |
50 | 55 |
51 IF (CMAKE_CROSSCOMPILING) | 56 IF (CMAKE_CROSSCOMPILING) |
52 SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.") | 57 SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.") |