annotate Resources/CMake/DcmtkConfiguration.cmake @ 927:ff1812962f30 mac

fix DOS EOL
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Apr 2014 16:53:25 +0200
parents ac8f68cbdbb6
children 882833632b1f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
927
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
1 add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR}")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
2
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
3 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
4 SET(DCMTK_VERSION_NUMBER 360)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
5 SET(DCMTK_SOURCES_DIR ${CMAKE_BINARY_DIR}/dcmtk-3.6.0)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
6 DownloadPackage(
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
7 "219ad631b82031806147e4abbfba4fa4"
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
8 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/dcmtk-3.6.0.zip"
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
9 "${DCMTK_SOURCES_DIR}")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
10
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
11 IF(CMAKE_CROSSCOMPILING)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
12 SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
13 ENDIF()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
14 SET(DCMTK_SOURCE_DIR ${CMAKE_BINARY_DIR}/dcmtk-3.6.0)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
15 include(${DCMTK_SOURCES_DIR}/CMake/CheckFunctionWithHeaderExists.cmake)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
16 include(${DCMTK_SOURCES_DIR}/CMake/GenerateDCMTKConfigure.cmake)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
17
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
18 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
19 set(HAVE_SSTREAM 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
20 set(HAVE_PROTOTYPE_BZERO 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
21 set(HAVE_PROTOTYPE_GETHOSTNAME 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
22 set(HAVE_PROTOTYPE_GETSOCKOPT 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
23 set(HAVE_PROTOTYPE_SETSOCKOPT 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
24 set(HAVE_PROTOTYPE_CONNECT 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
25 set(HAVE_PROTOTYPE_BIND 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
26 set(HAVE_PROTOTYPE_ACCEPT 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
27 set(HAVE_PROTOTYPE_SETSOCKNAME 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
28 set(HAVE_PROTOTYPE_GETSOCKNAME 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
29 endif()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
30
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
31 CONFIGURE_FILE(
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
32 ${DCMTK_SOURCES_DIR}/CMake/osconfig.h.in
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
33 ${DCMTK_SOURCES_DIR}/config/include/dcmtk/config/osconfig.h)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
34
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
35 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/dcmnet/libsrc DCMTK_SOURCES)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
36 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/dcmdata/libsrc DCMTK_SOURCES)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
37 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/ofstd/libsrc DCMTK_SOURCES)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
38
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
39 # Source for the logging facility of DCMTK
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
40 AUX_SOURCE_DIRECTORY(${DCMTK_SOURCES_DIR}/oflog/libsrc DCMTK_SOURCES)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
41 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
42 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
43 list(REMOVE_ITEM DCMTK_SOURCES
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
44 ${DCMTK_SOURCES_DIR}/oflog/libsrc/windebap.cc
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
45 ${DCMTK_SOURCES_DIR}/oflog/libsrc/winsock.cc
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
46 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
47 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
48 list(REMOVE_ITEM DCMTK_SOURCES
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
49 ${DCMTK_SOURCES_DIR}/oflog/libsrc/unixsock.cc
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
50 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
51
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
52 if (${CMAKE_COMPILER_IS_GNUCXX})
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
53 # This is a patch for MinGW64
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
54 execute_process(
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
55 COMMAND patch -p0 -i ${CMAKE_SOURCE_DIR}/Resources/Patches/dcmtk-mingw64.patch
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
56 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
57 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
58 endif()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
59
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
60 endif()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
61
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
62 list(REMOVE_ITEM DCMTK_SOURCES
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
63 ${DCMTK_SOURCES_DIR}/dcmdata/libsrc/mkdictbi.cc
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
64 ${DCMTK_SOURCES_DIR}/dcmdata/libsrc/mkdeftag.cc
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
65 ${DCMTK_SOURCES_DIR}/dcmdata/libsrc/dcdictbi.cc
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
66 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
67
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
68 # This fixes crashes related to the destruction of the DCMTK OFLogger
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
69 # http://support.dcmtk.org/docs-snapshot/file_macros.html
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
70 add_definitions(
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
71 -DLOG4CPLUS_DISABLE_FATAL=1
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
72 -DDCMTK_VERSION_NUMBER=360
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
73 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
74
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
75 include_directories(
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
76 #${DCMTK_SOURCES_DIR}
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
77 ${DCMTK_SOURCES_DIR}/config/include
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
78 ${DCMTK_SOURCES_DIR}/dcmnet/include
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
79 ${DCMTK_SOURCES_DIR}/ofstd/include
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
80 ${DCMTK_SOURCES_DIR}/oflog/include
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
81 ${DCMTK_SOURCES_DIR}/dcmdata/include
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
82 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
83
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
84 source_group(ThirdParty\\Dcmtk REGULAR_EXPRESSION ${DCMTK_SOURCES_DIR}/.*)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
85
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
86 set(DCMTK_BUNDLES_LOG4CPLUS 1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
87
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
88 if (STANDALONE_BUILD)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
89 add_definitions(-DDCMTK_USE_EMBEDDED_DICTIONARIES=1)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
90 else()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
91 add_definitions(-DDCMTK_USE_EMBEDDED_DICTIONARIES=0)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
92 endif()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
93
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
94 set(DCMTK_DICTIONARIES
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
95 DICTIONARY_DICOM ${DCMTK_SOURCES_DIR}/dcmdata/data/dicom.dic
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
96 DICTIONARY_PRIVATE ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
97 DICTIONARY_DICONDE ${DCMTK_SOURCES_DIR}/dcmdata/data/diconde.dic
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
98 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
99
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
100 else()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
101 # The following line allows to manually add libraries at the
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
102 # command-line, which is necessary for Ubuntu/Debian packages
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
103 set(tmp "${DCMTK_LIBRARIES}")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
104 include(FindDCMTK)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
105 list(APPEND DCMTK_LIBRARIES "${tmp}")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
106
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
107 include_directories(${DCMTK_INCLUDE_DIR})
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
108 link_libraries(${DCMTK_LIBRARIES})
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
109
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
110 add_definitions(
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
111 -DHAVE_CONFIG_H=1
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
112 )
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
113
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
114 if (EXISTS "${DCMTK_DIR}/config/cfunix.h")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
115 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/cfunix.h")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
116 elseif (EXISTS "${DCMTK_DIR}/config/osconfig.h") # This is for Arch Linux
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
117 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/osconfig.h")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
118 else()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
119 message(FATAL_ERROR "Please install libdcmtk1-dev")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
120 endif()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
121
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
122 # Autodetection of the version of DCMTK
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
123 file(STRINGS
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
124 "${DCMTK_CONFIGURATION_FILE}"
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
125 DCMTK_VERSION_NUMBER1 REGEX
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
126 ".*PACKAGE_VERSION .*")
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
127
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
128 string(REGEX REPLACE
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
129 ".*PACKAGE_VERSION.*\"([0-9]*)\\.([0-9]*)\\.([0-9]*)\"$"
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
130 "\\1\\2\\3"
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
131 DCMTK_VERSION_NUMBER
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
132 ${DCMTK_VERSION_NUMBER1})
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
133
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
134 add_definitions(-DDCMTK_USE_EMBEDDED_DICTIONARIES=0)
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
135
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
136 endif()
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
137
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
138 add_definitions(-DDCMTK_VERSION_NUMBER=${DCMTK_VERSION_NUMBER})
ff1812962f30 fix DOS EOL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 918
diff changeset
139 message("DCMTK version: ${DCMTK_VERSION_NUMBER}")