annotate OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake @ 5043:ec5c203a97ea

returning sequences in MainDicomTags and RequestedTags
author Alain Mazy <am@osimis.io>
date Mon, 27 Jun 2022 15:22:19 +0200
parents 43e613a7756b
children 6fed78e13233
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4120
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
3 # Department, University Hospital of Liege, Belgium
4870
43e613a7756b upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4834
diff changeset
4 # Copyright (C) 2017-2022 Osimis S.A., Belgium
43e613a7756b upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4834
diff changeset
5 # Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
4120
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
6 #
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
7 # This program is free software: you can redistribute it and/or
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
8 # modify it under the terms of the GNU Lesser General Public License
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
9 # as published by the Free Software Foundation, either version 3 of
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
10 # the License, or (at your option) any later version.
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
11 #
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
12 # This program is distributed in the hope that it will be useful, but
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
15 # Lesser General Public License for more details.
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
16 #
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
17 # You should have received a copy of the GNU Lesser General Public
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
18 # License along with this program. If not, see
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
19 # <http://www.gnu.org/licenses/>.
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
20
304842a0d152 adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4087
diff changeset
21
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 ## 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
24 ## 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
25 ## 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
26 ## 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
27 ## imaging plugin").
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 ## Configuration of the components
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
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 # Some basic inclusions
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
36 include(CMakePushCheckState)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 include(CheckFunctionExists)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
38 include(CheckIncludeFile)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
39 include(CheckIncludeFileCXX)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
40 include(CheckIncludeFiles)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 include(CheckLibraryExists)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
42 include(CheckStructHasMember)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
43 include(CheckSymbolExists)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
44 include(CheckTypeSize)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 include(FindPythonInterp)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
46
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 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
48 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
49 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
50
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 #####################################################################
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
53 ## Disable unneeded macros
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
54 #####################################################################
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
55
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
56 if (NOT ENABLE_SQLITE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
57 unset(USE_SYSTEM_SQLITE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
58 add_definitions(-DORTHANC_ENABLE_SQLITE=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
59 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
60
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
61 if (NOT ENABLE_CRYPTO_OPTIONS)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
62 unset(ENABLE_SSL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
63 unset(ENABLE_PKCS11 CACHE)
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2657
diff changeset
64 unset(ENABLE_OPENSSL_ENGINES CACHE)
3979
464d40d572bd removed unused CMake settings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3973
diff changeset
65 unset(OPENSSL_STATIC_VERSION CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
66 unset(USE_SYSTEM_OPENSSL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
67 unset(USE_SYSTEM_LIBP11 CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
68 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
69 -DORTHANC_ENABLE_SSL=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
70 -DORTHANC_ENABLE_PKCS11=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
71 )
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
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
74 if (NOT ENABLE_WEB_CLIENT)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
75 unset(USE_SYSTEM_CURL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
76 add_definitions(-DORTHANC_ENABLE_CURL=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
77 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
78
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
79 if (NOT ENABLE_WEB_SERVER)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
80 unset(ENABLE_CIVETWEB CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
81 unset(USE_SYSTEM_CIVETWEB CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
82 unset(USE_SYSTEM_MONGOOSE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
83 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
84 -DORTHANC_ENABLE_CIVETWEB=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
85 -DORTHANC_ENABLE_MONGOOSE=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
86 )
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_JPEG)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
90 unset(USE_SYSTEM_LIBJPEG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
91 add_definitions(-DORTHANC_ENABLE_JPEG=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
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
94 if (NOT ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
95 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
96 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
97 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
98
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
99 if (NOT ENABLE_PNG)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
100 unset(USE_SYSTEM_LIBPNG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
101 add_definitions(-DORTHANC_ENABLE_PNG=0)
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_LUA)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
105 unset(USE_SYSTEM_LUA CACHE)
2685
6801f99bbc2f Configuration option "LogExportedResources" is now "false" by default
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2676
diff changeset
106 unset(ENABLE_LUA_MODULES CACHE)
4649
e915102093de New CMake option: "ORTHANC_LUA_VERSION" to use a specific version of system-wide Lua
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4500
diff changeset
107 unset(ORTHANC_LUA_VERSION)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
108 add_definitions(-DORTHANC_ENABLE_LUA=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
109 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
110
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
111 if (NOT ENABLE_PUGIXML)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
112 unset(USE_SYSTEM_PUGIXML CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
113 add_definitions(-DORTHANC_ENABLE_PUGIXML=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
114 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
115
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
116 if (NOT ENABLE_LOCALE)
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
117 unset(BOOST_LOCALE_BACKEND CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
118 add_definitions(-DORTHANC_ENABLE_LOCALE=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
119 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
120
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
121 if (NOT ENABLE_GOOGLE_TEST)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
122 unset(USE_SYSTEM_GOOGLE_TEST CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
123 unset(USE_GOOGLE_TEST_DEBIAN_PACKAGE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
124 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
125
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
126 if (NOT ENABLE_DCMTK)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
127 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
128 -DORTHANC_ENABLE_DCMTK=0
4084
25812a487037 fix missing macros
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4040
diff changeset
129 -DORTHANC_ENABLE_DCMTK_JPEG=0
25812a487037 fix missing macros
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4040
diff changeset
130 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
131 -DORTHANC_ENABLE_DCMTK_NETWORKING=0
3727
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
132 -DORTHANC_ENABLE_DCMTK_TRANSCODING=0
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
133 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
134 unset(DCMTK_DICTIONARY_DIR CACHE)
3274
95b0536be2c3 preparing for dcmtk 3.6.4
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3241
diff changeset
135 unset(DCMTK_VERSION CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
136 unset(USE_DCMTK_362_PRIVATE_DIC CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
137 unset(USE_SYSTEM_DCMTK CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
138 unset(ENABLE_DCMTK_JPEG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
139 unset(ENABLE_DCMTK_JPEG_LOSSLESS CACHE)
3979
464d40d572bd removed unused CMake settings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3973
diff changeset
140 unset(DCMTK_STATIC_VERSION CACHE)
464d40d572bd removed unused CMake settings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3973
diff changeset
141 unset(ENABLE_DCMTK_LOG CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
142 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
143
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
144
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
145 #####################################################################
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
146 ## List of source files
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147 #####################################################################
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 set(ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
150 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/MemoryCache.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
151 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/MemoryObjectCache.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
152 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/MemoryStringCache.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
153 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/ChunkedBuffer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
154 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomTag.cpp
4681
c5528c7847a6 new class DicomPath
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4652
diff changeset
155 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomPath.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
156 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/EnumerationDictionary.h
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
157 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Enumerations.cpp
4500
3b4940bca158 added safeguards in Orthanc::FileInfo
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4484
diff changeset
158 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/FileInfo.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
159 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/MemoryStorageArea.cpp
4652
0ad5736c8d62 use plain C strings in MultipartStreamReader instead of std::string to allow further optimizations
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4649
diff changeset
160 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/CStringMatcher.cpp
4325
b96aedfa8cc1 unit tests now running in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4324
diff changeset
161 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpContentNegociation.cpp
4330
a01b1c9cbef4 moving generic type definitions from IHttpHandler to HttpToolbox
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4329
diff changeset
162 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpToolbox.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
163 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/MultipartStreamReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
164 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/StringMatcher.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
165 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Logging.cpp
4484
64f06e7d5fc7 new abstraction IMemoryBuffer to avoid unnecessary copies of std::string buffers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4456
diff changeset
166 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MallocMemoryBuffer.cpp
4304
50b0c69b653a continued abi
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4297
diff changeset
167 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/OrthancException.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
168 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/OrthancFramework.cpp
4325
b96aedfa8cc1 unit tests now running in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4324
diff changeset
169 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiHierarchy.cpp
b96aedfa8cc1 unit tests now running in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4324
diff changeset
170 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiPath.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
171 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SerializationToolbox.cpp
4484
64f06e7d5fc7 new abstraction IMemoryBuffer to avoid unnecessary copies of std::string buffers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4456
diff changeset
172 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/StringMemoryBuffer.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
173 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Toolbox.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
174 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/WebServiceParameters.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
177 if (ENABLE_MODULE_IMAGES)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
178 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
179 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/Font.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
180 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/FontRegistry.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
181 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/IImageWriter.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
182 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/Image.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
183 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/ImageAccessor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
184 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/ImageBuffer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
185 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/ImageProcessing.cpp
4834
bec432ee1094 download of numpy arrays from the REST API
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4831
diff changeset
186 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/NumpyWriter.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
187 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/PamReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
188 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/PamWriter.cpp
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
189 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
190 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
191
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
192 if (ENABLE_MODULE_DICOM)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
193 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
194 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomArray.cpp
4297
785a2713323e abi continued
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4296
diff changeset
195 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomElement.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
196 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomImageInformation.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
197 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomInstanceHasher.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
198 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomIntegerPixelAccessor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
199 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomMap.cpp
5043
ec5c203a97ea returning sequences in MainDicomTags and RequestedTags
Alain Mazy <am@osimis.io>
parents: 4870
diff changeset
200 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomSequencesMap.cpp
4297
785a2713323e abi continued
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4296
diff changeset
201 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomStreamReader.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
202 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomValue.cpp
4220
92a21efa5c96 reorganization of DicomStreamReader
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4120
diff changeset
203 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/StreamBlockReader.cpp
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
204 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
205 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
206
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
207 if (ENABLE_MODULE_JOBS)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
208 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
209 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/GenericJobUnserializer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
210 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobInfo.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
211 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobStatus.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
212 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobStepResult.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
213 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/JobOperationValues.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
214 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/LogJobOperation.cpp
4304
50b0c69b653a continued abi
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4297
diff changeset
215 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/NullOperationValue.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
216 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/SequenceOfOperationsJob.cpp
4304
50b0c69b653a continued abi
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4297
diff changeset
217 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/StringOperationValue.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
218 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/SetOfCommandsJob.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
219 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/SetOfInstancesJob.cpp
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
220 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
221 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
222
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
223
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224
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 ## 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
227 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
228
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
229
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
230 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
231 ## Embedded database: SQLite
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
232 ##
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 if (ENABLE_SQLITE)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
235 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
236 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
237
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
238 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
239 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/Connection.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
240 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/FunctionContext.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
241 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/Statement.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
242 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/StatementId.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
243 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/StatementReference.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
244 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/Transaction.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
245 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
246 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
248
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
249 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
250 ## Cryptography: OpenSSL and libp11
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251 ## 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
252 ##
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 if (ENABLE_CRYPTO_OPTIONS)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255 if (ENABLE_SSL)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 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
257 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
258 else()
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2657
diff changeset
259 unset(ENABLE_OPENSSL_ENGINES CACHE)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 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
261 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
262 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264 if (ENABLE_PKCS11)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265 if (ENABLE_SSL)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 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
267
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
268 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
269 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
270 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Pkcs11.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
271 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
272 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
273 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
274 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
275 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
276 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
277 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
278 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
279
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
280
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
281 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
282 ## HTTP client: libcurl
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
283 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
284
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
285 if (ENABLE_WEB_CLIENT)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
286 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
287 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
288
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
289 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
290 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpClient.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
291 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
292 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
293
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
294
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 ## 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
297 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
298
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
299 if (ENABLE_WEB_SERVER)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
300 if (ENABLE_CIVETWEB)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
301 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
302 add_definitions(
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303 -DORTHANC_ENABLE_CIVETWEB=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
304 -DORTHANC_ENABLE_MONGOOSE=0
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305 )
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
306 set(ORTHANC_ENABLE_CIVETWEB 1)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 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
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 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
312 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/BufferHttpSender.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
313 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/FilesystemHttpHandler.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
314 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/FilesystemHttpSender.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
315 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpFileSender.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
316 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpOutput.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
317 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpServer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
318 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpStreamTranscoder.cpp
4329
9dc0e42f868b moving static methods from HttpToolbox to IHttpHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4327
diff changeset
319 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/IHttpHandler.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
320 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/StringHttpOutput.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
321 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApi.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
322 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiCall.cpp
4399
80fd140b12ba New command-line option: "--openapi" to write the OpenAPI documentation of the REST API to a file
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4355
diff changeset
323 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiCallDocumentation.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
324 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiGetCall.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
325 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiOutput.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326 )
4226
7bd5eab3ba25 prototyping IWebDavBucket
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4220
diff changeset
327
7bd5eab3ba25 prototyping IWebDavBucket
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4220
diff changeset
328 if (ENABLE_PUGIXML)
7bd5eab3ba25 prototyping IWebDavBucket
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4220
diff changeset
329 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
7bd5eab3ba25 prototyping IWebDavBucket
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4220
diff changeset
330 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/IWebDavBucket.cpp
4230
b313a0001893 WebDavStorage
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4226
diff changeset
331 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/WebDavStorage.cpp
4226
7bd5eab3ba25 prototyping IWebDavBucket
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4220
diff changeset
332 )
7bd5eab3ba25 prototyping IWebDavBucket
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4220
diff changeset
333 endif()
2388
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
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
336 if (ORTHANC_ENABLE_CIVETWEB)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
337 add_definitions(-DORTHANC_ENABLE_CIVETWEB=1)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
338 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
339 add_definitions(-DORTHANC_ENABLE_CIVETWEB=0)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
340 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
341
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
342 if (ORTHANC_ENABLE_MONGOOSE)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
343 add_definitions(-DORTHANC_ENABLE_MONGOOSE=1)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
344 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
345 add_definitions(-DORTHANC_ENABLE_MONGOOSE=0)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
346 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
347
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
348
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
349
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
350 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
351 ## JPEG support: libjpeg
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
352 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
353
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
354 if (ENABLE_JPEG)
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
355 if (NOT ENABLE_MODULE_IMAGES)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
356 message(FATAL_ERROR "Image processing primitives must be enabled if enabling libjpeg support")
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
357 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
358
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
359 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
360 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
361
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
362 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
363 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/JpegErrorManager.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
364 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/JpegReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
365 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/JpegWriter.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
366 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
367 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
368
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
369
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
370 ##
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
371 ## zlib support
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
372 ##
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
373
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
374 if (ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
375 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
376 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
377
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
378 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
379 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/DeflateBaseCompressor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
380 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/GzipCompressor.cpp
4296
3b70a2e6a06c moving inline methods to source files for ABI compatibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4230
diff changeset
381 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/IBufferCompressor.cpp
4355
460a71988208 new class: ZipReader
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4354
diff changeset
382 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/ZipReader.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
383 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/ZlibCompressor.cpp
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
384 )
2529
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
385
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
386 if (NOT ORTHANC_SANDBOXED)
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
387 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
388 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/HierarchicalZipWriter.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
389 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/ZipWriter.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
390 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/StorageAccessor.cpp
4792
434843934307 Added a StorageCache in the StorageAccessor
Alain Mazy <am@osimis.io>
parents: 4681
diff changeset
391 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/StorageCache.cpp
2782
64e3d4ab158d find sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2708
diff changeset
392 )
2529
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
393 endif()
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
394 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
395
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
396
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
397 ##
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
398 ## 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
399 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
400
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
401 if (ENABLE_PNG)
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
402 if (NOT ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
403 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
404 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
405
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
406 if (NOT ENABLE_MODULE_IMAGES)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
407 message(FATAL_ERROR "Image processing primitives must be enabled if enabling libpng support")
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
408 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
409
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
410 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
411 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
412
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
413 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
414 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/PngReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
415 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/PngWriter.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
416 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
417 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
418
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
419
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
420 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
421 ## Lua support
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
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
424 if (ENABLE_LUA)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
425 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
426 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
427
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
428 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
429 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Lua/LuaContext.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
430 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Lua/LuaFunctionCall.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
431 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
432 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
433
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
434
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
435 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
436 ## XML support: pugixml
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 if (ENABLE_PUGIXML)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
440 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
441 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
442 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
443
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
444
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
445 ##
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
446 ## Locale support
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
447 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
448
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
449 if (ENABLE_LOCALE)
2513
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
450 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
451 # In WebAssembly or asm.js, we rely on the version of iconv that
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
452 # is shipped with the stdlib
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
453 unset(BOOST_LOCALE_BACKEND CACHE)
2513
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
454 else()
3241
32596919d729 first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3228
diff changeset
455 if (BOOST_LOCALE_BACKEND STREQUAL "gcc")
32596919d729 first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3228
diff changeset
456 elseif (BOOST_LOCALE_BACKEND STREQUAL "libiconv")
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
457 include(${CMAKE_CURRENT_LIST_DIR}/LibIconvConfiguration.cmake)
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
458 elseif (BOOST_LOCALE_BACKEND STREQUAL "icu")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
459 include(${CMAKE_CURRENT_LIST_DIR}/LibIcuConfiguration.cmake)
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
460 elseif (BOOST_LOCALE_BACKEND STREQUAL "wconv")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
461 message("Using Microsoft Window's wconv")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
462 else()
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
463 message(FATAL_ERROR "Invalid value for BOOST_LOCALE_BACKEND: ${BOOST_LOCALE_BACKEND}")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
464 endif()
2513
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
465 endif()
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
466
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
467 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
468 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
469
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
470
2404
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
471 ##
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
472 ## Google Test for unit testing
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
473 ##
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
474
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
475 if (ENABLE_GOOGLE_TEST)
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
476 include(${CMAKE_CURRENT_LIST_DIR}/GoogleTestConfiguration.cmake)
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
477 endif()
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
478
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
479
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
480
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
481 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
482 ## 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
483 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
484
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
485 include(${CMAKE_CURRENT_LIST_DIR}/JsonCppConfiguration.cmake)
2512
4dcafa8d6633 SystemToolbox::GenerateUuid moved to Toolbox::GenerateUuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2511
diff changeset
486 include(${CMAKE_CURRENT_LIST_DIR}/UuidConfiguration.cmake)
2465
80c1ed8e7283 uuid not available if sandboxed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2463
diff changeset
487
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
488 # We put Boost as the last dependency, as it is the heaviest to
3973
d86bddb50972 fix spelling errors according to debian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3920
diff changeset
489 # configure, which allows one to quickly spot problems when configuring
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
490 # 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
491 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
492
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
493
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
494 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
495 ## Optional configuration of DCMTK
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
496 #####################################################################
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 if (ENABLE_DCMTK)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
499 if (NOT ENABLE_LOCALE)
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
500 message(FATAL_ERROR "Support for locales must be enabled if enabling DCMTK support")
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
501 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
502
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
503 if (NOT ENABLE_MODULE_DICOM)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
504 message(FATAL_ERROR "DICOM module must be enabled if enabling DCMTK support")
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
505 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
506
4428
a9a596ed988d autodetection of SSL_CTX_get0_param()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4399
diff changeset
507 # WARNING - MUST be after "OpenSslConfiguration.cmake", otherwise
a9a596ed988d autodetection of SSL_CTX_get0_param()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4399
diff changeset
508 # DICOM TLS will not be corrected detected
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
509 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
510
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
511 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
512
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
513 if (ENABLE_DCMTK_JPEG)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
514 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
515 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
516 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
517 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
518
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
519 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
520 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
521 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
522 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
523 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
524
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
525 set(ORTHANC_DICOM_SOURCES_INTERNAL
4325
b96aedfa8cc1 unit tests now running in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4324
diff changeset
526 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomFindAnswers.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
527 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DicomModification.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
528 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DicomWebJsonVisitor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
529 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/FromDcmtkBridge.cpp
4456
3e4f7b7840f0 new class: ParsedDicomCache()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4437
diff changeset
530 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/ParsedDicomCache.cpp
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
531 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/ParsedDicomDir.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
532 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/ParsedDicomFile.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
533 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/ToDcmtkBridge.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
534
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
535 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/Internals/DicomFrameIndex.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
536 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/Internals/DicomImageDecoder.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
537 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
538
2516
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
539 if (NOT ORTHANC_SANDBOXED)
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
540 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
541 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DicomDirWriter.cpp
2516
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
542 )
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
543 endif()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
544
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
545 if (ENABLE_DCMTK_NETWORKING)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
546 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1)
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
547 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
548 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomAssociation.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
549 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomAssociationParameters.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
550 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomControlUserConnection.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
551 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomServer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
552 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomStoreUserConnection.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
553 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/Internals/CommandDispatcher.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
554 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/Internals/FindScp.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
555 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/Internals/MoveScp.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
556 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/Internals/GetScp.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
557 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/Internals/StoreScp.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
558 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/RemoteModalityParameters.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
559 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/TimeoutDicomConnectionManager.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
560 )
4432
fcbac3e8ac1c dicom tls for scu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4428
diff changeset
561
fcbac3e8ac1c dicom tls for scu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4428
diff changeset
562 if (ENABLE_SSL)
fcbac3e8ac1c dicom tls for scu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4428
diff changeset
563 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
fcbac3e8ac1c dicom tls for scu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4428
diff changeset
564 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/Internals/DicomTls.cpp
fcbac3e8ac1c dicom tls for scu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4428
diff changeset
565 )
fcbac3e8ac1c dicom tls for scu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4428
diff changeset
566 endif()
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
567 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
568 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
569 endif()
2397
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
570
3727
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
571 # New in Orthanc 1.6.0
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
572 if (ENABLE_DCMTK_TRANSCODING)
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
573 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=1)
3893
7a5fa8f307e9 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3864
diff changeset
574 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
575 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DcmtkTranscoder.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
576 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/IDicomTranscoder.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
577 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/MemoryBufferTranscoder.cpp
3893
7a5fa8f307e9 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3864
diff changeset
578 )
3727
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
579 else()
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
580 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=0)
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
581 endif()
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
582 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
583
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
584
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
585 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
586 ## 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
587 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
588
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
589 add_definitions(
3305
aee8d160df43 changed API version to number 2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3274
diff changeset
590 -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
591 -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
592 -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
593 -DORTHANC_ENABLE_BASE64=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
594 -DORTHANC_ENABLE_MD5=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
595 -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
596 -DORTHANC_VERSION="${ORTHANC_VERSION}"
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
597 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
598
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
599
4026
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
600 if (ORTHANC_BUILDING_FRAMEWORK_LIBRARY)
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
601 add_definitions(-DORTHANC_BUILDING_FRAMEWORK_LIBRARY=1)
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
602 else()
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
603 add_definitions(-DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0)
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
604 endif()
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
605
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
606
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
607 if (ORTHANC_SANDBOXED)
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
608 add_definitions(
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
609 -DORTHANC_SANDBOXED=1
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
610 )
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
611
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
612 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
613 set(ORTHANC_ENABLE_LOGGING ON)
4324
433e94d08e36 revert changeset 4320:72237cbb4fb2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4322
diff changeset
614 set(ORTHANC_ENABLE_LOGGING_STDIO ON)
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
615 else()
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
616 set(ORTHANC_ENABLE_LOGGING OFF)
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
617 endif()
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
618
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
619 else()
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
620 set(ORTHANC_ENABLE_LOGGING ON)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
621 set(ORTHANC_ENABLE_LOGGING_STDIO OFF)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
622
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
623 add_definitions(
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
624 -DORTHANC_SANDBOXED=0
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
625 )
2536
e0e377a48626 ORTHANC_FRAMEWORK_PLUGIN
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2529
diff changeset
626
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
627 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
628 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/SharedArchive.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
629 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileBuffer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
630 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/FilesystemStorage.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
631 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MetricsRegistry.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
632 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MultiThreading/RunnableWorkersPool.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
633 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MultiThreading/Semaphore.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
634 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MultiThreading/SharedMessageQueue.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
635 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SharedLibrary.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
636 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SystemToolbox.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
637 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/TemporaryFile.cpp
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
638 )
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
639
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
640 if (ENABLE_MODULE_JOBS)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
641 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
642 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobsEngine.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
643 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobsRegistry.cpp
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
644 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
645 endif()
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
646 endif()
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
647
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
648
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
649
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
650 if (ORTHANC_ENABLE_LOGGING)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
651 add_definitions(-DORTHANC_ENABLE_LOGGING=1)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
652 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
653 add_definitions(-DORTHANC_ENABLE_LOGGING=0)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
654 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
655
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
656 if (ORTHANC_ENABLE_LOGGING_STDIO)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
657 add_definitions(-DORTHANC_ENABLE_LOGGING_STDIO=1)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
658 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
659 add_definitions(-DORTHANC_ENABLE_LOGGING_STDIO=0)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
660 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
661
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
662
2988
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
663
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
664 #####################################################################
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
665 ## Configuration of Orthanc versioning macros (new in Orthanc 1.5.0)
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
666 #####################################################################
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
667
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
668 if (ORTHANC_VERSION STREQUAL "mainline")
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
669 set(ORTHANC_VERSION_MAJOR "999")
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
670 set(ORTHANC_VERSION_MINOR "999")
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
671 set(ORTHANC_VERSION_REVISION "999")
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
672 else()
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
673 string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)$" "\\1" ORTHANC_VERSION_MAJOR ${ORTHANC_VERSION})
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
674 string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)$" "\\2" ORTHANC_VERSION_MINOR ${ORTHANC_VERSION})
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
675 string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)$" "\\3" ORTHANC_VERSION_REVISION ${ORTHANC_VERSION})
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
676
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
677 if (NOT ORTHANC_VERSION STREQUAL
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
678 "${ORTHANC_VERSION_MAJOR}.${ORTHANC_VERSION_MINOR}.${ORTHANC_VERSION_REVISION}")
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
679 message(FATAL_ERROR "Error in the (x.y.z) format of the Orthanc version: ${ORTHANC_VERSION}")
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
680 endif()
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
681 endif()
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
682
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
683 add_definitions(
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
684 -DORTHANC_VERSION_MAJOR=${ORTHANC_VERSION_MAJOR}
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
685 -DORTHANC_VERSION_MINOR=${ORTHANC_VERSION_MINOR}
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
686 -DORTHANC_VERSION_REVISION=${ORTHANC_VERSION_REVISION}
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
687 )
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
688
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
689
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
690
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
691 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
692 ## 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
693 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
694
2392
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
695 # 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
696 # 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
697 # if using Microsoft Visual Studio.
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
698
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
699 # 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
700 # third-party dependencies.
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
701
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
702
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
703 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
704 ${BOOST_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
705 ${CIVETWEB_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
706 ${CURL_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
707 ${JSONCPP_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
708 ${LIBICONV_SOURCES}
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
709 ${LIBICU_SOURCES}
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
710 ${LIBJPEG_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
711 ${LIBP11_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
712 ${LIBPNG_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
713 ${LUA_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
714 ${MONGOOSE_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
715 ${OPENSSL_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
716 ${PUGIXML_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
717 ${SQLITE_SOURCES}
2453
c50413a4092c missing generated file in e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2450
diff changeset
718 ${UUID_SOURCES}
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
719 ${ZLIB_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
720
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
721 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/md5/md5.c
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
722 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/base64/base64.cpp
2785
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
723 )
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
724
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
725 if (ENABLE_ZLIB AND NOT ORTHANC_SANDBOXED)
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
726 list(APPEND ORTHANC_CORE_SOURCES_DEPENDENCIES
4354
bcfb53d1bc56 trying to uncompress one zip archive
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4330
diff changeset
727 # This is the minizip distribution to create/decode ZIP files using zlib
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
728 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/minizip/ioapi.c
4354
bcfb53d1bc56 trying to uncompress one zip archive
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4330
diff changeset
729 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/minizip/unzip.c
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
730 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/minizip/zip.c
2785
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
731 )
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
732 endif()
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
733
2514
38d666a40860 fix msvc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2513
diff changeset
734
4040
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
735 if (NOT "${LIBICU_RESOURCES}" STREQUAL "" OR
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
736 NOT "${DCMTK_DICTIONARIES}" STREQUAL "")
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
737 EmbedResources(
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
738 --namespace=Orthanc.FrameworkResources
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
739 --target=OrthancFrameworkResources
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
740 --framework-path=${CMAKE_CURRENT_LIST_DIR}/../../Sources
4040
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
741 ${LIBICU_RESOURCES}
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
742 ${DCMTK_DICTIONARIES}
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
743 )
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
744 endif()
4030
100fbe970762 DANGEROUS commit: removing HAS_EMBEDDED_RESOURCES
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4026
diff changeset
745
100fbe970762 DANGEROUS commit: removing HAS_EMBEDDED_RESOURCES
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4026
diff changeset
746
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
747 set(ORTHANC_CORE_SOURCES
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
748 ${ORTHANC_CORE_SOURCES_INTERNAL}
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
749 ${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
750 )
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
751
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
752 if (ENABLE_DCMTK)
2397
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
753 list(APPEND ORTHANC_DICOM_SOURCES_DEPENDENCIES
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
754 ${DCMTK_SOURCES}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
755 )
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
756
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
757 set(ORTHANC_DICOM_SOURCES
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
758 ${ORTHANC_DICOM_SOURCES_INTERNAL}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
759 ${ORTHANC_DICOM_SOURCES_DEPENDENCIES}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
760 )
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
761 endif()