annotate OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake @ 4087:dcf4d83374a6 framework

integration mainline->framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 Jun 2020 09:47:51 +0200
parents Resources/CMake/OrthancFrameworkConfiguration.cmake@25812a487037 Resources/CMake/OrthancFrameworkConfiguration.cmake@c459f210f6ac
children 304842a0d152
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 ## This is a CMake configuration file that configures the core
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 ## libraries of Orthanc. This file can be used by external projects so
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 ## as to gain access to the Orthanc APIs (the most prominent examples
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 ## are currently "Stone of Orthanc" and "Orthanc for whole-slide
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 ## imaging plugin").
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 ## Configuration of the components
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 # Some basic inclusions
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
15 include(CMakePushCheckState)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 include(CheckFunctionExists)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
17 include(CheckIncludeFile)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
18 include(CheckIncludeFileCXX)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
19 include(CheckIncludeFiles)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 include(CheckLibraryExists)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
21 include(CheckStructHasMember)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
22 include(CheckSymbolExists)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
23 include(CheckTypeSize)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 include(FindPythonInterp)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2444
diff changeset
25
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 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
27 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
28 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
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 #####################################################################
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
32 ## Disable unneeded macros
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
33 #####################################################################
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
34
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
35 if (NOT ENABLE_SQLITE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
36 unset(USE_SYSTEM_SQLITE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
37 add_definitions(-DORTHANC_ENABLE_SQLITE=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
38 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
39
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
40 if (NOT ENABLE_CRYPTO_OPTIONS)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
41 unset(ENABLE_SSL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
42 unset(ENABLE_PKCS11 CACHE)
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2657
diff changeset
43 unset(ENABLE_OPENSSL_ENGINES CACHE)
3979
464d40d572bd removed unused CMake settings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3973
diff changeset
44 unset(OPENSSL_STATIC_VERSION CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
45 unset(USE_SYSTEM_OPENSSL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
46 unset(USE_SYSTEM_LIBP11 CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
47 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
48 -DORTHANC_ENABLE_SSL=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
49 -DORTHANC_ENABLE_PKCS11=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
50 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
51 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
52
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
53 if (NOT ENABLE_WEB_CLIENT)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
54 unset(USE_SYSTEM_CURL CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
55 add_definitions(-DORTHANC_ENABLE_CURL=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
56 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
57
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
58 if (NOT ENABLE_WEB_SERVER)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
59 unset(ENABLE_CIVETWEB CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
60 unset(USE_SYSTEM_CIVETWEB CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
61 unset(USE_SYSTEM_MONGOOSE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
62 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
63 -DORTHANC_ENABLE_CIVETWEB=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
64 -DORTHANC_ENABLE_MONGOOSE=0
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
65 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
66 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
67
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
68 if (NOT ENABLE_JPEG)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
69 unset(USE_SYSTEM_LIBJPEG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
70 add_definitions(-DORTHANC_ENABLE_JPEG=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
71 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
72
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
73 if (NOT ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
74 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
75 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
76 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
77
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
78 if (NOT ENABLE_PNG)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
79 unset(USE_SYSTEM_LIBPNG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
80 add_definitions(-DORTHANC_ENABLE_PNG=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
81 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
82
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
83 if (NOT ENABLE_LUA)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
84 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
85 unset(ENABLE_LUA_MODULES CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
86 add_definitions(-DORTHANC_ENABLE_LUA=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
87 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
88
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
89 if (NOT ENABLE_PUGIXML)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
90 unset(USE_SYSTEM_PUGIXML CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
91 add_definitions(-DORTHANC_ENABLE_PUGIXML=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
92 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
93
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
94 if (NOT ENABLE_LOCALE)
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
95 unset(BOOST_LOCALE_BACKEND CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
96 add_definitions(-DORTHANC_ENABLE_LOCALE=0)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
97 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
98
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
99 if (NOT ENABLE_GOOGLE_TEST)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
100 unset(USE_SYSTEM_GOOGLE_TEST CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
101 unset(USE_GOOGLE_TEST_DEBIAN_PACKAGE CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
102 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
103
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
104 if (NOT ENABLE_DCMTK)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
105 add_definitions(
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
106 -DORTHANC_ENABLE_DCMTK=0
4084
25812a487037 fix missing macros
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4040
diff changeset
107 -DORTHANC_ENABLE_DCMTK_JPEG=0
25812a487037 fix missing macros
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4040
diff changeset
108 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
109 -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
110 -DORTHANC_ENABLE_DCMTK_TRANSCODING=0
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
111 )
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
112 unset(DCMTK_DICTIONARY_DIR CACHE)
3274
95b0536be2c3 preparing for dcmtk 3.6.4
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3241
diff changeset
113 unset(DCMTK_VERSION CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
114 unset(USE_DCMTK_362_PRIVATE_DIC CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
115 unset(USE_SYSTEM_DCMTK CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
116 unset(ENABLE_DCMTK_JPEG CACHE)
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
117 unset(ENABLE_DCMTK_JPEG_LOSSLESS CACHE)
3979
464d40d572bd removed unused CMake settings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3973
diff changeset
118 unset(DCMTK_STATIC_VERSION CACHE)
464d40d572bd removed unused CMake settings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3973
diff changeset
119 unset(ENABLE_DCMTK_LOG CACHE)
2429
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
120 endif()
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
121
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
122
fe90b3ec9d4a improvement in Orthanc framework config
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2407
diff changeset
123 #####################################################################
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 ## List of source files
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 set(ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
128 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/MemoryCache.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
129 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/MemoryObjectCache.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
130 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/MemoryStringCache.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
131 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/ChunkedBuffer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
132 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomTag.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
133 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/EnumerationDictionary.h
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
134 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Enumerations.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
135 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/MemoryStorageArea.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
136 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/MultipartStreamReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
137 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/StringMatcher.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
138 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Logging.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
139 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/OrthancFramework.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
140 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SerializationToolbox.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
141 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Toolbox.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
142 ${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
143 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
145 if (ENABLE_MODULE_IMAGES)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
146 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
147 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/Font.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
148 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/FontRegistry.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
149 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/IImageWriter.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
150 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/Image.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
151 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/ImageAccessor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
152 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/ImageBuffer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
153 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/ImageProcessing.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
154 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/PamReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
155 ${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
156 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
157 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
158
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
159 if (ENABLE_MODULE_DICOM)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
160 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
161 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomArray.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
162 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomImageInformation.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
163 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomInstanceHasher.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
164 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomIntegerPixelAccessor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
165 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomMap.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
166 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomFormat/DicomValue.cpp
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
167 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
168 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
169
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
170 if (ENABLE_MODULE_JOBS)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
171 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
172 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/GenericJobUnserializer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
173 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobInfo.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
174 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobStatus.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
175 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobStepResult.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
176 ${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
177 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/LogJobOperation.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
178 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/Operations/SequenceOfOperationsJob.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
179 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/SetOfCommandsJob.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
180 ${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
181 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
182 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
183
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
184
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187 ## 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
188 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
189
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
190
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
191 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192 ## Embedded database: SQLite
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
193 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
194
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 if (ENABLE_SQLITE)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 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
197 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
198
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
200 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/Connection.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
201 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/FunctionContext.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
202 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/Statement.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
203 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/StatementId.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
204 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SQLite/StatementReference.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
205 ${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
206 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
210 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
211 ## Cryptography: OpenSSL and libp11
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
212 ## 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
213 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 if (ENABLE_CRYPTO_OPTIONS)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
216 if (ENABLE_SSL)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
217 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
218 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
219 else()
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2657
diff changeset
220 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
221 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
222 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
223 endif()
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 if (ENABLE_PKCS11)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
226 if (ENABLE_SSL)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
227 include(${CMAKE_CURRENT_LIST_DIR}/LibP11Configuration.cmake)
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 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
230 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
231 ${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
232 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
233 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234 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
235 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
236 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
237 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
238 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
239 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
240
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
241
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
242 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
243 ## HTTP client: libcurl
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
244 ##
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 if (ENABLE_WEB_CLIENT)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247 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
248 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
249
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
250 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
251 ${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
252 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
253 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
254
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
257 ## 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
258 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 if (ENABLE_WEB_SERVER)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
261 if (ENABLE_CIVETWEB)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262 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
263 add_definitions(
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264 -DORTHANC_ENABLE_CIVETWEB=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265 -DORTHANC_ENABLE_MONGOOSE=0
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 )
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
267 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
268 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269 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
270 endif()
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 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
273 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/BufferHttpSender.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
274 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/FilesystemHttpHandler.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
275 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/FilesystemHttpSender.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
276 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpContentNegociation.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
277 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpFileSender.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
278 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpOutput.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
279 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpServer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
280 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpStreamTranscoder.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
281 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/HttpToolbox.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
282 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/HttpServer/StringHttpOutput.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
283 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApi.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
284 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiCall.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
285 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiGetCall.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
286 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiHierarchy.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
287 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiOutput.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
288 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/RestApi/RestApiPath.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
289 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
290 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
291
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
292 if (ORTHANC_ENABLE_CIVETWEB)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
293 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
294 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
295 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
296 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
297
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
298 if (ORTHANC_ENABLE_MONGOOSE)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
299 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
300 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
301 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
302 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
303
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
304
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 ## JPEG support: libjpeg
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
310 if (ENABLE_JPEG)
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
311 if (NOT ENABLE_MODULE_IMAGES)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
312 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
313 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
314
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
315 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
316 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
317
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
318 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
319 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/JpegErrorManager.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
320 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/JpegReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
321 ${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
322 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
323 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
324
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
325
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326 ##
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
327 ## zlib support
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
328 ##
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
329
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
330 if (ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
331 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
332 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
333
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
334 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
335 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/DeflateBaseCompressor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
336 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/GzipCompressor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
337 ${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
338 )
2529
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
339
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
340 if (NOT ORTHANC_SANDBOXED)
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
341 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
342 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/HierarchicalZipWriter.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
343 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Compression/ZipWriter.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
344 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/StorageAccessor.cpp
2782
64e3d4ab158d find sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2708
diff changeset
345 )
2529
ae5f98eadb75 fix in Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2516
diff changeset
346 endif()
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
347 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
348
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
349
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
350 ##
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
351 ## 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
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_PNG)
2508
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
355 if (NOT ENABLE_ZLIB)
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
356 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
357 endif()
91ee08d986f9 possibility to disable zlib support in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2483
diff changeset
358
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
359 if (NOT ENABLE_MODULE_IMAGES)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
360 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
361 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
362
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
363 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
364 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
365
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
366 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
367 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Images/PngReader.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
368 ${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
369 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
370 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
371
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
372
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
373 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
374 ## Lua support
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
375 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
376
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
377 if (ENABLE_LUA)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
378 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
379 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
380
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
381 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
382 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Lua/LuaContext.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
383 ${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
384 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
385 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
386
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
387
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
388 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
389 ## XML support: pugixml
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
390 ##
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
391
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
392 if (ENABLE_PUGIXML)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
393 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
394 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
395 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
396
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
397
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
398 ##
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
399 ## Locale support
2388
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
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
402 if (ENABLE_LOCALE)
2513
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
403 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
404 # 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
405 # is shipped with the stdlib
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
406 unset(BOOST_LOCALE_BACKEND CACHE)
2513
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
407 else()
3241
32596919d729 first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3228
diff changeset
408 if (BOOST_LOCALE_BACKEND STREQUAL "gcc")
32596919d729 first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3228
diff changeset
409 elseif (BOOST_LOCALE_BACKEND STREQUAL "libiconv")
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
410 include(${CMAKE_CURRENT_LIST_DIR}/LibIconvConfiguration.cmake)
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
411 elseif (BOOST_LOCALE_BACKEND STREQUAL "icu")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
412 include(${CMAKE_CURRENT_LIST_DIR}/LibIcuConfiguration.cmake)
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
413 elseif (BOOST_LOCALE_BACKEND STREQUAL "wconv")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
414 message("Using Microsoft Window's wconv")
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
415 else()
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
416 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
417 endif()
2513
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
418 endif()
97a74f0eac7a loading DICOM dictionaries in sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2512
diff changeset
419
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
420 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
421 endif()
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
2404
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
424 ##
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
425 ## Google Test for unit testing
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
426 ##
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
427
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
428 if (ENABLE_GOOGLE_TEST)
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
429 include(${CMAKE_CURRENT_LIST_DIR}/GoogleTestConfiguration.cmake)
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
430 endif()
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
431
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
432
e6af2c5cd0f1 migration of Google Test into OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2397
diff changeset
433
2388
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 ## 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
436 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
437
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
438 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
439 include(${CMAKE_CURRENT_LIST_DIR}/UuidConfiguration.cmake)
2465
80c1ed8e7283 uuid not available if sandboxed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2463
diff changeset
440
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
441 # 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
442 # 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
443 # 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
444 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
445
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
446
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 ## Optional configuration of DCMTK
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
449 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
450
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
451 if (ENABLE_DCMTK)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
452 if (NOT ENABLE_LOCALE)
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
453 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
454 endif()
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
455
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
456 if (NOT ENABLE_MODULE_DICOM)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
457 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
458 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
459
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
460 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
461
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
462 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
463
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
464 if (ENABLE_DCMTK_JPEG)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
465 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
466 else()
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_DCMTK_JPEG=0)
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 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
471 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
472 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
473 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
474 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
475
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
476 set(ORTHANC_DICOM_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
477 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DicomModification.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
478 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DicomWebJsonVisitor.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
479 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/FromDcmtkBridge.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
480 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/ParsedDicomDir.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
481 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/ParsedDicomFile.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
482 ${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
483
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
484 ${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
485 ${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
486 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
487
2516
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
488 if (NOT ORTHANC_SANDBOXED)
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
489 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
490 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DicomDirWriter.cpp
2516
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
491 )
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
492 endif()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2514
diff changeset
493
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
494 if (ENABLE_DCMTK_NETWORKING)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
495 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1)
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
496 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
497 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomAssociation.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
498 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomAssociationParameters.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
499 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomControlUserConnection.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
500 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomFindAnswers.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
501 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomServer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
502 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/DicomStoreUserConnection.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
503 ${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
504 ${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
505 ${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
506 ${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
507 ${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
508 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomNetworking/RemoteModalityParameters.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
509 ${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
510 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
511 else()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
512 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
513 endif()
2397
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
514
3727
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
515 # 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
516 if (ENABLE_DCMTK_TRANSCODING)
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
517 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=1)
3893
7a5fa8f307e9 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3864
diff changeset
518 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
519 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/DcmtkTranscoder.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
520 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/IDicomTranscoder.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
521 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/DicomParsing/MemoryBufferTranscoder.cpp
3893
7a5fa8f307e9 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3864
diff changeset
522 )
3727
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
523 else()
090022f1b5e1 auto-generation of primitives to handle transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3557
diff changeset
524 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
525 endif()
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
526 endif()
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
527
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
528
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
529 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
530 ## 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
531 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
532
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
533 add_definitions(
3305
aee8d160df43 changed API version to number 2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3274
diff changeset
534 -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
535 -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
536 -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
537 -DORTHANC_ENABLE_BASE64=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
538 -DORTHANC_ENABLE_MD5=1
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
539 -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
540 -DORTHANC_VERSION="${ORTHANC_VERSION}"
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
541 )
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
542
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
543
4026
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
544 if (ORTHANC_BUILDING_FRAMEWORK_LIBRARY)
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
545 add_definitions(-DORTHANC_BUILDING_FRAMEWORK_LIBRARY=1)
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
546 else()
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
547 add_definitions(-DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0)
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
548 endif()
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
549
05a363186da6 ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4015
diff changeset
550
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
551 if (ORTHANC_SANDBOXED)
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
552 add_definitions(
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
553 -DORTHANC_SANDBOXED=1
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
554 )
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
555
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
556 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
557 set(ORTHANC_ENABLE_LOGGING ON)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
558 set(ORTHANC_ENABLE_LOGGING_STDIO ON)
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
559 else()
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
560 set(ORTHANC_ENABLE_LOGGING OFF)
2483
9c54c40eaf25 logging primitives for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2465
diff changeset
561 endif()
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
562
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
563 else()
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
564 set(ORTHANC_ENABLE_LOGGING ON)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
565 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
566
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
567 add_definitions(
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
568 -DORTHANC_SANDBOXED=0
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
569 )
2536
e0e377a48626 ORTHANC_FRAMEWORK_PLUGIN
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2529
diff changeset
570
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
571 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
572 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/Cache/SharedArchive.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
573 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileBuffer.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
574 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/FileStorage/FilesystemStorage.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
575 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MetricsRegistry.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
576 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MultiThreading/RunnableWorkersPool.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
577 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MultiThreading/Semaphore.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
578 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/MultiThreading/SharedMessageQueue.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
579 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SharedLibrary.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
580 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/SystemToolbox.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
581 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/TemporaryFile.cpp
2407
5edec967055e fix sandboxed builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2406
diff changeset
582 )
2791
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
583
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
584 if (ENABLE_MODULE_JOBS)
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
585 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
586 ${CMAKE_CURRENT_LIST_DIR}/../../Sources/JobsEngine/JobsEngine.cpp
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
587 ${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
588 )
d015fa861e3c selective disabling of modules in the Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2785
diff changeset
589 endif()
2406
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
590 endif()
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
591
f0cfacd0c9b8 Orthanc framework: ORTHANC_SANDBOXED parameter
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2404
diff changeset
592
3992
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
593
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
594 if (ORTHANC_ENABLE_LOGGING)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
595 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
596 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
597 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
598 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
599
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
600 if (ORTHANC_ENABLE_LOGGING_STDIO)
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
601 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
602 else()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
603 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
604 endif()
f9863630ec7f working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3985
diff changeset
605
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
606
2988
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
607
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
608 #####################################################################
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
609 ## 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
610 #####################################################################
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
611
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
612 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
613 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
614 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
615 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
616 else()
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
617 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
618 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
619 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
620
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
621 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
622 "${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
623 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
624 endif()
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
625 endif()
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
626
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
627 add_definitions(
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
628 -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
629 -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
630 -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
631 )
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
632
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
633
9cc3d40e389b Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2975
diff changeset
634
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
635 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
636 ## 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
637 #####################################################################
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
638
2392
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
639 # 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
640 # 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
641 # if using Microsoft Visual Studio.
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
642
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
643 # 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
644 # third-party dependencies.
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
645
a88c3ea0c96d getting rid of the OpenSSL static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2391
diff changeset
646
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
647 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
648 ${BOOST_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
649 ${CIVETWEB_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
650 ${CURL_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
651 ${JSONCPP_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
652 ${LIBICONV_SOURCES}
3228
4b9cfd92d1ae preparing for libicu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3202
diff changeset
653 ${LIBICU_SOURCES}
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
654 ${LIBJPEG_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
655 ${LIBP11_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
656 ${LIBPNG_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
657 ${LUA_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
658 ${MONGOOSE_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
659 ${OPENSSL_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
660 ${PUGIXML_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
661 ${SQLITE_SOURCES}
2453
c50413a4092c missing generated file in e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2450
diff changeset
662 ${UUID_SOURCES}
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
663 ${ZLIB_SOURCES}
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
664
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
665 ${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
666 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/base64/base64.cpp
2785
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
667 )
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
668
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
669 if (ENABLE_ZLIB AND NOT ORTHANC_SANDBOXED)
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
670 list(APPEND ORTHANC_CORE_SOURCES_DEPENDENCIES
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
671 # This is the minizip distribution to create ZIP files using zlib
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
672 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/minizip/ioapi.c
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
673 ${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/minizip/zip.c
2785
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
674 )
a16ad34d46f1 fix msvc build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2784
diff changeset
675 endif()
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
676
2514
38d666a40860 fix msvc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2513
diff changeset
677
4040
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
678 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
679 NOT "${DCMTK_DICTIONARIES}" STREQUAL "")
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
680 EmbedResources(
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
681 --namespace=Orthanc.FrameworkResources
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
682 --target=OrthancFrameworkResources
4049
47e9e788224c removing occurrences of ORTHANC_ROOT
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
683 --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
684 ${LIBICU_RESOURCES}
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
685 ${DCMTK_DICTIONARIES}
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
686 )
052dc48c15be don't generate embedded resources if not needed
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4034
diff changeset
687 endif()
4030
100fbe970762 DANGEROUS commit: removing HAS_EMBEDDED_RESOURCES
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4026
diff changeset
688
100fbe970762 DANGEROUS commit: removing HAS_EMBEDDED_RESOURCES
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4026
diff changeset
689
2390
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
690 set(ORTHANC_CORE_SOURCES
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
691 ${ORTHANC_CORE_SOURCES_INTERNAL}
cf0eb76c5e81 fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2388
diff changeset
692 ${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
693 )
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
694
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
695 if (ENABLE_DCMTK)
2397
98c2a9c2c0fc automated inclusion of DICOM dictionaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2396
diff changeset
696 list(APPEND ORTHANC_DICOM_SOURCES_DEPENDENCIES
2391
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
697 ${DCMTK_SOURCES}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
698 )
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
699
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
700 set(ORTHANC_DICOM_SOURCES
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
701 ${ORTHANC_DICOM_SOURCES_INTERNAL}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
702 ${ORTHANC_DICOM_SOURCES_DEPENDENCIES}
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
703 )
233d6eeef799 fix pch
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2390
diff changeset
704 endif()