annotate Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2511:8a0d3044ef53

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Mar 2018 14:18:02 +0200
parents 04873915beaf
children 4dcafa8d6633
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 ## This is a CMake configuration file that configures the core
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 ## libraries of Orthanc. This file can be used by external projects so
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 ## as to gain access to the Orthanc APIs (the most prominent examples
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 ## are currently "Stone of Orthanc" and "Orthanc for whole-slide
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 ## imaging plugin").
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 ## Configuration of the components
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 # Path to the root folder of the Orthanc distribution
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 set(ORTHANC_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 # Some basic inclusions
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
18 include(CMakePushCheckState)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 include(CheckFunctionExists)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
20 include(CheckIncludeFile)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
21 include(CheckIncludeFileCXX)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
22 include(CheckIncludeFiles)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 include(CheckLibraryExists)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
24 include(CheckStructHasMember)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
25 include(CheckSymbolExists)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
26 include(CheckTypeSize)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 include(FindPythonInterp)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
28
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 include(${CMAKE_CURRENT_LIST_DIR}/AutoGeneratedCode.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 include(${CMAKE_CURRENT_LIST_DIR}/DownloadPackage.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 include(${CMAKE_CURRENT_LIST_DIR}/Compiler.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 #####################################################################
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
35 ## Disable unneeded macros
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
36 #####################################################################
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
37
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
38 if (NOT ENABLE_SQLITE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
39 unset(USE_SYSTEM_SQLITE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
40 add_definitions(-DORTHANC_ENABLE_SQLITE=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
41 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
42
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
43 if (NOT ENABLE_CRYPTO_OPTIONS)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
44 unset(ENABLE_SSL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
45 unset(ENABLE_PKCS11 CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
46 unset(USE_SYSTEM_OPENSSL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
47 unset(USE_SYSTEM_LIBP11 CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
48 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
49 -DORTHANC_ENABLE_SSL=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
50 -DORTHANC_ENABLE_PKCS11=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
51 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
52 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
53
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
54 if (NOT ENABLE_WEB_CLIENT)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
55 unset(USE_SYSTEM_CURL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
56 add_definitions(-DORTHANC_ENABLE_CURL=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
57 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
58
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
59 if (NOT ENABLE_WEB_SERVER)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
60 unset(ENABLE_CIVETWEB CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
61 unset(USE_SYSTEM_CIVETWEB CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
62 unset(USE_SYSTEM_MONGOOSE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
63 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
64 -DORTHANC_ENABLE_CIVETWEB=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
65 -DORTHANC_ENABLE_MONGOOSE=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
66 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
67 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
68
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
69 if (NOT ENABLE_JPEG)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
70 unset(USE_SYSTEM_LIBJPEG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
71 add_definitions(-DORTHANC_ENABLE_JPEG=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
72 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
73
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
74 if (NOT ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
75 unset(USE_SYSTEM_ZLIB CACHE)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
76 add_definitions(-DORTHANC_ENABLE_ZLIB=0)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
77 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
78
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
79 if (NOT ENABLE_PNG)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
80 unset(USE_SYSTEM_LIBPNG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
81 add_definitions(-DORTHANC_ENABLE_PNG=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
82 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
83
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
84 if (NOT ENABLE_LUA)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
85 unset(USE_SYSTEM_LUA CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
86 add_definitions(-DORTHANC_ENABLE_LUA=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
87 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
88
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
89 if (NOT ENABLE_PUGIXML)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
90 unset(USE_SYSTEM_PUGIXML CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
91 add_definitions(-DORTHANC_ENABLE_PUGIXML=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
92 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
93
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
94 if (NOT ENABLE_LOCALE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
95 unset(USE_SYSTEM_LIBICONV CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
96 add_definitions(-DORTHANC_ENABLE_LOCALE=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
97 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
98
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
99 if (NOT ENABLE_GOOGLE_TEST)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
100 unset(USE_SYSTEM_GOOGLE_TEST CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
101 unset(USE_GOOGLE_TEST_DEBIAN_PACKAGE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
102 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
103
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
104 if (NOT ENABLE_DCMTK)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
105 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
106 -DORTHANC_ENABLE_DCMTK=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
107 -DORTHANC_ENABLE_DCMTK_NETWORKING=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
108 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
109 unset(DCMTK_DICTIONARY_DIR CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
110 unset(USE_DCMTK_360 CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
111 unset(USE_DCMTK_362_PRIVATE_DIC CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
112 unset(USE_SYSTEM_DCMTK CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
113 unset(ENABLE_DCMTK_JPEG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
114 unset(ENABLE_DCMTK_JPEG_LOSSLESS CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
115 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
116
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
117
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
118 #####################################################################
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 ## List of source files
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
120 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 set(ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 ${ORTHANC_ROOT}/Core/Cache/MemoryCache.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 ${ORTHANC_ROOT}/Core/ChunkedBuffer.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125 ${ORTHANC_ROOT}/Core/DicomFormat/DicomArray.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 ${ORTHANC_ROOT}/Core/DicomFormat/DicomImageInformation.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 ${ORTHANC_ROOT}/Core/DicomFormat/DicomInstanceHasher.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128 ${ORTHANC_ROOT}/Core/DicomFormat/DicomIntegerPixelAccessor.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 ${ORTHANC_ROOT}/Core/DicomFormat/DicomMap.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130 ${ORTHANC_ROOT}/Core/DicomFormat/DicomTag.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 ${ORTHANC_ROOT}/Core/DicomFormat/DicomValue.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 ${ORTHANC_ROOT}/Core/Enumerations.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133 ${ORTHANC_ROOT}/Core/Images/Font.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134 ${ORTHANC_ROOT}/Core/Images/FontRegistry.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 ${ORTHANC_ROOT}/Core/Images/IImageWriter.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
136 ${ORTHANC_ROOT}/Core/Images/Image.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
137 ${ORTHANC_ROOT}/Core/Images/ImageAccessor.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 ${ORTHANC_ROOT}/Core/Images/ImageBuffer.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 ${ORTHANC_ROOT}/Core/Images/ImageProcessing.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 ${ORTHANC_ROOT}/Core/Logging.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141 ${ORTHANC_ROOT}/Core/Toolbox.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
142 ${ORTHANC_ROOT}/Core/WebServiceParameters.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
143 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
145
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
146 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147 ## Configuration of optional third-party dependencies
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
148 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
149
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
150
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
151 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
152 ## Embedded database: SQLite
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
153 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
154
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155 if (ENABLE_SQLITE)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
156 include(${CMAKE_CURRENT_LIST_DIR}/SQLiteConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157 add_definitions(-DORTHANC_ENABLE_SQLITE=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
158
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
159 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
160 ${ORTHANC_ROOT}/Core/SQLite/Connection.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
161 ${ORTHANC_ROOT}/Core/SQLite/FunctionContext.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
162 ${ORTHANC_ROOT}/Core/SQLite/Statement.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
163 ${ORTHANC_ROOT}/Core/SQLite/StatementId.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
164 ${ORTHANC_ROOT}/Core/SQLite/StatementReference.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
165 ${ORTHANC_ROOT}/Core/SQLite/Transaction.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171 ## Cryptography: OpenSSL and libp11
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172 ## Must be above "ENABLE_WEB_CLIENT" and "ENABLE_WEB_SERVER"
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
173 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
174
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 if (ENABLE_CRYPTO_OPTIONS)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176 if (ENABLE_SSL)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
177 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
178 add_definitions(-DORTHANC_ENABLE_SSL=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
179 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
180 unset(USE_SYSTEM_OPENSSL CACHE)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 add_definitions(-DORTHANC_ENABLE_SSL=0)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
183
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
184 if (ENABLE_PKCS11)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185 if (ENABLE_SSL)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186 include(${CMAKE_CURRENT_LIST_DIR}/LibP11Configuration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
188 add_definitions(-DORTHANC_ENABLE_PKCS11=1)
2392
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
189 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
190 ${ORTHANC_ROOT}/Core/Pkcs11.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
191 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
193 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11 support")
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
194 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 add_definitions(-DORTHANC_ENABLE_PKCS11=0)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
197 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
200
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202 ## HTTP client: libcurl
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 if (ENABLE_WEB_CLIENT)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206 include(${CMAKE_CURRENT_LIST_DIR}/LibCurlConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 add_definitions(-DORTHANC_ENABLE_CURL=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
210 ${ORTHANC_ROOT}/Core/HttpClient.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
211 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
212 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
213
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
216 ## HTTP server: Mongoose 3.8 or Civetweb
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
217 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
218
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
219 if (ENABLE_WEB_SERVER)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
220 if (ENABLE_CIVETWEB)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
221 include(${CMAKE_CURRENT_LIST_DIR}/CivetwebConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
222 add_definitions(
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
223 -DORTHANC_ENABLE_CIVETWEB=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224 -DORTHANC_ENABLE_MONGOOSE=0
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
225 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
226 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
227 include(${CMAKE_CURRENT_LIST_DIR}/MongooseConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
228 add_definitions(
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
229 -DORTHANC_ENABLE_CIVETWEB=0
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
230 -DORTHANC_ENABLE_MONGOOSE=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
231 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
232 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
233
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
235 ${ORTHANC_ROOT}/Core/HttpServer/BufferHttpSender.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
236 ${ORTHANC_ROOT}/Core/HttpServer/FilesystemHttpHandler.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
237 ${ORTHANC_ROOT}/Core/HttpServer/FilesystemHttpSender.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
238 ${ORTHANC_ROOT}/Core/HttpServer/HttpContentNegociation.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
239 ${ORTHANC_ROOT}/Core/HttpServer/HttpFileSender.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
240 ${ORTHANC_ROOT}/Core/HttpServer/HttpOutput.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
241 ${ORTHANC_ROOT}/Core/HttpServer/HttpStreamTranscoder.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
242 ${ORTHANC_ROOT}/Core/HttpServer/HttpToolbox.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
243 ${ORTHANC_ROOT}/Core/HttpServer/MongooseServer.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
244 ${ORTHANC_ROOT}/Core/HttpServer/StringHttpOutput.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
245 ${ORTHANC_ROOT}/Core/RestApi/RestApi.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
246 ${ORTHANC_ROOT}/Core/RestApi/RestApiCall.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247 ${ORTHANC_ROOT}/Core/RestApi/RestApiGetCall.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
248 ${ORTHANC_ROOT}/Core/RestApi/RestApiHierarchy.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
249 ${ORTHANC_ROOT}/Core/RestApi/RestApiOutput.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
250 ${ORTHANC_ROOT}/Core/RestApi/RestApiPath.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
252 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
253
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
254
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 ## JPEG support: libjpeg
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
257 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
258
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259 if (ENABLE_JPEG)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 include(${CMAKE_CURRENT_LIST_DIR}/LibJpegConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
261 add_definitions(-DORTHANC_ENABLE_JPEG=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264 ${ORTHANC_ROOT}/Core/Images/JpegErrorManager.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265 ${ORTHANC_ROOT}/Core/Images/JpegReader.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 ${ORTHANC_ROOT}/Core/Images/JpegWriter.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
267 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
268 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
270
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
271 ##
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
272 ## zlib support
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
273 ##
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
274
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
275 if (ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
276 include(${CMAKE_CURRENT_LIST_DIR}/ZlibConfiguration.cmake)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
277 add_definitions(-DORTHANC_ENABLE_ZLIB=1)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
278
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
279 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
280 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
281 ${ORTHANC_ROOT}/Core/Compression/HierarchicalZipWriter.cpp
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
282 ${ORTHANC_ROOT}/Core/Compression/GzipCompressor.cpp
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
283 ${ORTHANC_ROOT}/Core/Compression/ZipWriter.cpp
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
284 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
285
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
286 # This is the minizip distribution to create ZIP files using zlib
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
287 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/ioapi.c
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
288 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/zip.c
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
289 )
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
290 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
291
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
292
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
293 ##
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
294 ## PNG support: libpng (in conjunction with zlib)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
295 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
296
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
297 if (ENABLE_PNG)
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
298 if (NOT ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
299 message(FATAL_ERROR "Support for zlib must be enabled if enabling libpng support")
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
300 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
301
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
302 include(${CMAKE_CURRENT_LIST_DIR}/LibPngConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303 add_definitions(-DORTHANC_ENABLE_PNG=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
304
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 ${ORTHANC_ROOT}/Core/Images/PngReader.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 ${ORTHANC_ROOT}/Core/Images/PngWriter.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
310
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
311
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
312 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
313 ## Lua support
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
314 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
315
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
316 if (ENABLE_LUA)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
317 include(${CMAKE_CURRENT_LIST_DIR}/LuaConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
318 add_definitions(-DORTHANC_ENABLE_LUA=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
319
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
320 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
321 ${ORTHANC_ROOT}/Core/Lua/LuaContext.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
322 ${ORTHANC_ROOT}/Core/Lua/LuaFunctionCall.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
323 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
324 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
325
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
327 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
328 ## XML support: pugixml
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
329 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
330
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
331 if (ENABLE_PUGIXML)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
332 include(${CMAKE_CURRENT_LIST_DIR}/PugixmlConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
333 add_definitions(-DORTHANC_ENABLE_PUGIXML=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
334 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
335
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
336
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
337 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
338 ## Locale support: libiconv
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
339 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
340
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
341 if (ENABLE_LOCALE)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
342 include(${CMAKE_CURRENT_LIST_DIR}/LibIconvConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
343 add_definitions(-DORTHANC_ENABLE_LOCALE=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
344 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
345
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
346
2404
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
347 ##
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
348 ## Google Test for unit testing
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
349 ##
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
350
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
351 if (ENABLE_GOOGLE_TEST)
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
352 include(${CMAKE_CURRENT_LIST_DIR}/GoogleTestConfiguration.cmake)
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
353 endif()
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
354
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
355
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
356
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
357 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
358 ## Inclusion of mandatory third-party dependencies
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
359 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
360
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
361 include(${CMAKE_CURRENT_LIST_DIR}/JsonCppConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
362
2465
80c1ed8e7283 uuid not available if sandboxed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2463
diff changeset
363 if (NOT ORTHANC_SANDBOXED)
80c1ed8e7283 uuid not available if sandboxed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2463
diff changeset
364 include(${CMAKE_CURRENT_LIST_DIR}/UuidConfiguration.cmake)
80c1ed8e7283 uuid not available if sandboxed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2463
diff changeset
365 endif()
80c1ed8e7283 uuid not available if sandboxed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2463
diff changeset
366
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
367 # We put Boost as the last dependency, as it is the heaviest to
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
368 # configure, which allows to quickly spot problems when configuring
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
369 # static builds in other dependencies
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
370 include(${CMAKE_CURRENT_LIST_DIR}/BoostConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
371
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
372
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
373 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
374 ## Optional configuration of DCMTK
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
375 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
376
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
377 if (ENABLE_DCMTK)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
378 if (NOT ENABLE_LOCALE)
2511
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2510
diff changeset
379 message(FATAL_ERROR "Support for locales must be enabled if enabling DICOM support")
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
380 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
381
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
382 include(${CMAKE_CURRENT_LIST_DIR}/DcmtkConfiguration.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
383
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
384 add_definitions(-DORTHANC_ENABLE_DCMTK=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
385
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
386 if (ENABLE_DCMTK_JPEG)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
387 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
388 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
389 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG=0)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
390 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
391
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
392 if (ENABLE_DCMTK_JPEG_LOSSLESS)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
393 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
394 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
395 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
396 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
397
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
398 set(ORTHANC_DICOM_SOURCES_INTERNAL
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
399 ${ORTHANC_ROOT}/Core/DicomParsing/DicomDirWriter.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
400 ${ORTHANC_ROOT}/Core/DicomParsing/DicomModification.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
401 ${ORTHANC_ROOT}/Core/DicomParsing/FromDcmtkBridge.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
402 ${ORTHANC_ROOT}/Core/DicomParsing/ParsedDicomFile.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
403 ${ORTHANC_ROOT}/Core/DicomParsing/ToDcmtkBridge.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
404
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
405 ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomFrameIndex.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
406 ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomImageDecoder.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
407 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
408
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
409 if (ENABLE_DCMTK_NETWORKING)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
410 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1)
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
411 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
412 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomFindAnswers.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
413 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomServer.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
414 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomUserConnection.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
415 ${ORTHANC_ROOT}/Core/DicomNetworking/RemoteModalityParameters.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
416 ${ORTHANC_ROOT}/Core/DicomNetworking/ReusableDicomUserConnection.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
417
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
418 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/CommandDispatcher.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
419 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/FindScp.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
420 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/MoveScp.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
421 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/StoreScp.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
422 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
423 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
424 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=0)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
425 endif()
2397
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
426
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
427 if (STANDALONE_BUILD AND NOT HAS_EMBEDDED_RESOURCES)
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
428 EmbedResources(
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
429 ${DCMTK_DICTIONARIES}
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
430 )
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
431 list(APPEND ORTHANC_DICOM_SOURCES_DEPENDENCIES
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
432 ${AUTOGENERATED_SOURCES}
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
433 )
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
434 endif()
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
435 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
436
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
437
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
438 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
439 ## Configuration of the C/C++ macros
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
440 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
441
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
442 add_definitions(
2444
d9e3781d2023 "/system" URI returns the version of the Orthanc REST API
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2429
diff changeset
443 -DORTHANC_API_VERSION="${ORTHANC_API_VERSION}"
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
444 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
445 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
446 -DORTHANC_ENABLE_BASE64=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
447 -DORTHANC_ENABLE_MD5=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
448 -DORTHANC_MAXIMUM_TAG_LENGTH=256
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
449 -DORTHANC_VERSION="${ORTHANC_VERSION}"
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
450 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
451
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
452
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
453 if (ORTHANC_SANDBOXED)
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
454 add_definitions(
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
455 -DORTHANC_SANDBOXED=1
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
456 -DORTHANC_ENABLE_LOGGING_PLUGIN=0
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
457 )
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
458
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
459 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
460 add_definitions(
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
461 -DORTHANC_ENABLE_LOGGING=1
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
462 -DORTHANC_ENABLE_LOGGING_STDIO=1
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
463 )
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
464 else()
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
465 add_definitions(
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
466 -DORTHANC_ENABLE_LOGGING=0
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
467 )
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
468 endif()
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
469
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
470 else()
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
471 add_definitions(
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
472 -DORTHANC_SANDBOXED=0
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
473 -DORTHANC_ENABLE_LOGGING=1
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
474 -DORTHANC_ENABLE_LOGGING_PLUGIN=0
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
475 -DORTHANC_ENABLE_LOGGING_STDIO=0
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
476 )
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
477
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
478 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
479 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
480 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
481 ${ORTHANC_ROOT}/Core/FileStorage/StorageAccessor.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
482 ${ORTHANC_ROOT}/Core/MultiThreading/BagOfTasksProcessor.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
483 ${ORTHANC_ROOT}/Core/MultiThreading/Mutex.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
484 ${ORTHANC_ROOT}/Core/MultiThreading/ReaderWriterLock.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
485 ${ORTHANC_ROOT}/Core/MultiThreading/RunnableWorkersPool.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
486 ${ORTHANC_ROOT}/Core/MultiThreading/Semaphore.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
487 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp
2463
be5c0f4155f6 move SharedLibrary into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
488 ${ORTHANC_ROOT}/Core/SharedLibrary.cpp
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
489 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
490 ${ORTHANC_ROOT}/Core/TemporaryFile.cpp
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
491 )
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
492 endif()
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
493
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
494
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
495 if (HAS_EMBEDDED_RESOURCES)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
496 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=1)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
497
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
498 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
499 ${ORTHANC_ROOT}/Core/HttpServer/EmbeddedResourceHttpHandler.cpp
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
500 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
501 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
502 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=0)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
503 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
504
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
505
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
506 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
507 ## Gathering of all the source code
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
508 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
509
2392
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
510 # The "xxx_INTERNAL" variables list the source code that belongs to
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
511 # the Orthanc project. It can be used to configure precompiled headers
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
512 # if using Microsoft Visual Studio.
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
513
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
514 # The "xxx_DEPENDENCIES" variables list the source code coming from
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
515 # third-party dependencies.
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
516
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
517
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
518 set(ORTHANC_CORE_SOURCES_DEPENDENCIES
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
519 ${BOOST_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
520 ${CIVETWEB_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
521 ${CURL_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
522 ${JSONCPP_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
523 ${LIBICONV_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
524 ${LIBJPEG_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
525 ${LIBP11_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
526 ${LIBPNG_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
527 ${LUA_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
528 ${MONGOOSE_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
529 ${OPENSSL_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
530 ${PUGIXML_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
531 ${SQLITE_SOURCES}
2453
c50413a4092c missing generated file in e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2450
diff changeset
532 ${UUID_SOURCES}
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
533 ${ZLIB_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
534
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
535 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
536 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
537 )
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
538
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
539 set(ORTHANC_CORE_SOURCES
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
540 ${ORTHANC_CORE_SOURCES_INTERNAL}
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
541 ${ORTHANC_CORE_SOURCES_DEPENDENCIES}
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
542 )
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
543
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
544 if (ENABLE_DCMTK)
2397
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
545 list(APPEND ORTHANC_DICOM_SOURCES_DEPENDENCIES
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
546 ${DCMTK_SOURCES}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
547 )
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
548
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
549 set(ORTHANC_DICOM_SOURCES
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
550 ${ORTHANC_DICOM_SOURCES_INTERNAL}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
551 ${ORTHANC_DICOM_SOURCES_DEPENDENCIES}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
552 )
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
553 endif()