Mercurial > hg > orthanc-stone
annotate Resources/CMake/OrthancStoneConfiguration.cmake @ 276:5de5699ad570 am-2
first display in QCairoWidget; no mouse interaction yet
author | am@osimis.io |
---|---|
date | Mon, 27 Aug 2018 12:21:52 +0200 |
parents | dc1beee33134 |
children | 300d8b8c48b3 |
rev | line source |
---|---|
47 | 1 # Stone of Orthanc |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
135
e2fe9352f240
upgrade to year 2018
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
130
diff
changeset
|
4 # Copyright (C) 2017-2018 Osimis S.A., Belgium |
47 | 5 # |
6 # This program is free software: you can redistribute it and/or | |
7 # modify it under the terms of the GNU Affero General Public License | |
8 # as published by the Free Software Foundation, either version 3 of | |
9 # the License, or (at your option) any later version. | |
10 # | |
11 # This program is distributed in the hope that it will be useful, but | |
12 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 # Affero General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU Affero General Public License | |
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | |
19 | |
20
946377d1c992
skeleton for unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
16
diff
changeset
|
20 |
0 | 21 ##################################################################### |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
22 ## Configure the Orthanc Framework |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
23 ##################################################################### |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
24 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
25 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
212
5412adf19980
resort to OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
205
diff
changeset
|
26 include_directories(${ORTHANC_ROOT}) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
27 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
28 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
29 ##################################################################### |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
30 ## Sanity check of the configuration |
0 | 31 ##################################################################### |
32 | |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
33 if (ORTHANC_SANDBOXED) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
34 if (ENABLE_CURL) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
35 message(FATAL_ERROR "Cannot enable curl in sandboxed environments") |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
36 endif() |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
37 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
38 if (ENABLE_SDL) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
39 message(FATAL_ERROR "Cannot enable SDL in sandboxed environments") |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
40 endif() |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
41 |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
42 if (ENABLE_QT) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
43 message(FATAL_ERROR "Cannot enable QT in sandboxed environments") |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
44 endif() |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
45 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
46 if (ENABLE_SSL) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
47 message(FATAL_ERROR "Cannot enable SSL in sandboxed environments") |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
48 endif() |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
49 endif() |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
50 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
51 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
52 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
53 ## Configure mandatory third-party components |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
54 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
55 |
215 | 56 SET(ORTHANC_STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
57 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
58 include(FindPkgConfig) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
59 include(${CMAKE_CURRENT_LIST_DIR}/BoostExtendedConfiguration.cmake) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
60 include(${CMAKE_CURRENT_LIST_DIR}/CairoConfiguration.cmake) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
61 include(${CMAKE_CURRENT_LIST_DIR}/PixmanConfiguration.cmake) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
62 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
63 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
64 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
65 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
66 ## Configure optional third-party components |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
67 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
68 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
69 if (NOT ORTHANC_SANDBOXED) |
22
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
70 list(APPEND ORTHANC_STONE_SOURCES |
38 | 71 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancHttpConnection.cpp |
22
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
72 ) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
73 endif() |
22
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
74 |
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
75 |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
76 if (ENABLE_SDL AND ENABLE_QT) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
77 message("SDL and QT may not be defined together") |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
78 elseif(ENABLE_SDL) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
79 message("SDL is enabled") |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
80 include(${CMAKE_CURRENT_LIST_DIR}/SdlConfiguration.cmake) |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
81 add_definitions(-DORTHANC_ENABLE_NATIVE=1) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
82 add_definitions(-DORTHANC_ENABLE_QT=0) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
83 add_definitions(-DORTHANC_ENABLE_SDL=1) |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
84 elseif(ENABLE_QT) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
85 message("QT is enabled") |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
86 include(${CMAKE_CURRENT_LIST_DIR}/QtConfiguration.cmake) |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
87 add_definitions(-DORTHANC_ENABLE_NATIVE=1) |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
88 add_definitions(-DORTHANC_ENABLE_QT=1) |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
89 add_definitions(-DORTHANC_ENABLE_SDL=0) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
90 else() |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
91 message("SDL and QT are both disabled") |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
92 unset(USE_SYSTEM_SDL CACHE) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
93 add_definitions(-DORTHANC_ENABLE_SDL=0) |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
94 add_definitions(-DORTHANC_ENABLE_QT=0) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
95 add_definitions(-DORTHANC_ENABLE_NATIVE=0) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
96 endif() |
0 | 97 |
98 | |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
99 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
100 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
101 ## Configuration of the C/C++ macros |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
102 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
103 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
104 if (MSVC) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
105 # Remove some warnings on Visual Studio 2015 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
106 add_definitions(-D_SCL_SECURE_NO_WARNINGS=1) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
107 endif() |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
108 |
0 | 109 add_definitions( |
31
9aace933cb64
sharing code with the Orthanc core
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
26
diff
changeset
|
110 -DHAS_ORTHANC_EXCEPTION=1 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
111 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
0 | 112 ) |
113 | |
267 | 114 if (CMAKE_BUILD_TYPE STREQUAL "Debug") |
115 add_definitions(-DCHECK_OBSERVERS_MESSAGES) | |
116 endif() | |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
117 |
0 | 118 ##################################################################### |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
119 ## Embed the colormaps into the binaries |
0 | 120 ##################################################################### |
121 | |
122 EmbedResources( | |
256
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
123 # Resources coming from the core of Orthanc. They must be copied |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
124 # here, as HAS_EMBEDDED_RESOURCES is set to ON in |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
125 # "OrthancStoneParameters.cmake" |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
126 ${DCMTK_DICTIONARIES} |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
127 |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
128 # Resources specific to the Stone of Orthanc |
215 | 129 COLORMAP_HOT ${ORTHANC_STONE_ROOT}/Resources/Colormaps/hot.lut |
130 COLORMAP_JET ${ORTHANC_STONE_ROOT}/Resources/Colormaps/jet.lut | |
131 COLORMAP_RED ${ORTHANC_STONE_ROOT}/Resources/Colormaps/red.lut | |
132 COLORMAP_GREEN ${ORTHANC_STONE_ROOT}/Resources/Colormaps/green.lut | |
133 COLORMAP_BLUE ${ORTHANC_STONE_ROOT}/Resources/Colormaps/blue.lut | |
0 | 134 ) |
135 | |
136 | |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
137 |
0 | 138 ##################################################################### |
139 ## System-specific patches | |
140 ##################################################################### | |
141 | |
142 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND | |
143 NOT MSVC AND | |
144 ENABLE_SDL) | |
145 # This is necessary when compiling EXE for Windows using MinGW | |
146 link_libraries(mingw32) | |
147 endif() | |
148 | |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
149 if (ORTHANC_SANDBOXED) |
114
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
150 # Remove functions not suitable for a sandboxed environment |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
151 list(REMOVE_ITEM ORTHANC_CORE_SOURCES |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
152 ${ZLIB_SOURCES_DIR}/gzlib.c |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
153 ${ZLIB_SOURCES_DIR}/gzwrite.c |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
154 ${ZLIB_SOURCES_DIR}/gzread.c |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
155 ) |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
156 endif() |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
157 |
0 | 158 |
159 | |
160 ##################################################################### | |
161 ## All the source files required to build Stone of Orthanc | |
162 ##################################################################### | |
163 | |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
164 set(APPLICATIONS_SOURCES |
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
165 ${ORTHANC_STONE_ROOT}/Applications/IBasicApplication.h |
222 | 166 ${ORTHANC_STONE_ROOT}/Applications/BasicApplicationContext.cpp |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
167 ) |
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
168 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
169 if (NOT ORTHANC_SANDBOXED) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
170 set(PLATFORM_SOURCES |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
250
diff
changeset
|
171 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp |
215 | 172 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp |
173 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp | |
174 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp | |
249 | 175 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.h |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
176 ) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
177 |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
178 if (ENABLE_SDL OR ENABLE_QT) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
179 list(APPEND APPLICATIONS_SOURCES |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
180 ${ORTHANC_STONE_ROOT}/Applications/Generic/BasicNativeApplication.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
181 ${ORTHANC_STONE_ROOT}/Applications/Generic/BasicNativeApplicationContext.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
182 ) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
183 if (ENABLE_SDL) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
184 list(APPEND APPLICATIONS_SOURCES |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
185 ${ORTHANC_STONE_ROOT}/Applications/Sdl/BasicSdlApplication.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
186 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlEngine.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
187 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlCairoSurface.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
188 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlOrthancSurface.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
189 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlWindow.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
190 ) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
191 endif() |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
192 endif() |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
193 else() |
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
194 list(APPEND APPLICATIONS_SOURCES |
242 | 195 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp |
255 | 196 ) |
197 | |
198 set(STONE_WASM_SOURCES | |
244 | 199 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp |
200 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp | |
201 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp | |
255 | 202 ) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
203 endif() |
80 | 204 |
0 | 205 list(APPEND ORTHANC_STONE_SOURCES |
215 | 206 #${ORTHANC_STONE_ROOT}/Framework/Layers/SeriesFrameRendererFactory.cpp |
207 #${ORTHANC_STONE_ROOT}/Framework/Layers/SiblingSliceLocationFactory.cpp | |
208 #${ORTHANC_STONE_ROOT}/Framework/Layers/SingleFrameRendererFactory.cpp | |
209 ${ORTHANC_STONE_ROOT}/Framework/StoneEnumerations.cpp | |
258 | 210 ${ORTHANC_STONE_ROOT}/Framework/SmartLoader.cpp |
215 | 211 ${ORTHANC_STONE_ROOT}/Framework/Layers/CircleMeasureTracker.cpp |
212 ${ORTHANC_STONE_ROOT}/Framework/Layers/ColorFrameRenderer.cpp | |
213 ${ORTHANC_STONE_ROOT}/Framework/Layers/DicomStructureSetRendererFactory.cpp | |
214 ${ORTHANC_STONE_ROOT}/Framework/Layers/FrameRenderer.cpp | |
215 ${ORTHANC_STONE_ROOT}/Framework/Layers/GrayscaleFrameRenderer.cpp | |
249 | 216 ${ORTHANC_STONE_ROOT}/Framework/Layers/ILayerSource.h |
215 | 217 ${ORTHANC_STONE_ROOT}/Framework/Layers/LayerSourceBase.cpp |
218 ${ORTHANC_STONE_ROOT}/Framework/Layers/LineLayerRenderer.cpp | |
219 ${ORTHANC_STONE_ROOT}/Framework/Layers/LineMeasureTracker.cpp | |
266
c9cf95b49a86
removed OrthancSlicesLoader::ISliceLoaderObserver; now using standard messages instead
am@osimis.io
parents:
260
diff
changeset
|
220 ${ORTHANC_STONE_ROOT}/Framework/Layers/OrthancFrameLayer.h |
215 | 221 ${ORTHANC_STONE_ROOT}/Framework/Layers/OrthancFrameLayerSource.cpp |
222 ${ORTHANC_STONE_ROOT}/Framework/Layers/RenderStyle.cpp | |
223 ${ORTHANC_STONE_ROOT}/Framework/Layers/SliceOutlineRenderer.cpp | |
224 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/CoordinateSystem3D.cpp | |
225 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomFrameConverter.cpp | |
226 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomStructureSet.cpp | |
227 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DownloadStack.cpp | |
228 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Extent2D.cpp | |
229 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/FiniteProjectiveCamera.cpp | |
230 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/GeometryToolbox.cpp | |
231 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ImageGeometry.cpp | |
268
5bd4161bf11b
removed constness of the observable when emitting a message
am@osimis.io
parents:
267
diff
changeset
|
232 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IWebService.h |
215 | 233 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/LinearAlgebra.cpp |
234 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/MessagingToolbox.cpp | |
235 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrientedBoundingBox.cpp | |
236 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrthancSlicesLoader.cpp | |
270 | 237 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrthancApiClient.cpp |
215 | 238 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ParallelSlices.cpp |
239 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ParallelSlicesCursor.cpp | |
240 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ShearWarpProjectiveTransform.cpp | |
241 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Slice.cpp | |
242 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/SlicesSorter.cpp | |
243 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ViewportGeometry.cpp | |
244 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoContext.cpp | |
245 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoFont.cpp | |
246 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoSurface.cpp | |
222 | 247 ${ORTHANC_STONE_ROOT}/Framework/Viewport/IStatusBar.h |
215 | 248 ${ORTHANC_STONE_ROOT}/Framework/Viewport/WidgetViewport.cpp |
249 ${ORTHANC_STONE_ROOT}/Framework/Volumes/ImageBuffer3D.cpp | |
250 ${ORTHANC_STONE_ROOT}/Framework/Volumes/SlicedVolumeBase.cpp | |
251 ${ORTHANC_STONE_ROOT}/Framework/Volumes/StructureSetLoader.cpp | |
252 ${ORTHANC_STONE_ROOT}/Framework/Volumes/VolumeLoaderBase.cpp | |
253 ${ORTHANC_STONE_ROOT}/Framework/Volumes/VolumeReslicer.cpp | |
254 ${ORTHANC_STONE_ROOT}/Framework/Widgets/CairoWidget.cpp | |
255 ${ORTHANC_STONE_ROOT}/Framework/Widgets/EmptyWidget.cpp | |
256 ${ORTHANC_STONE_ROOT}/Framework/Widgets/LayerWidget.cpp | |
257 ${ORTHANC_STONE_ROOT}/Framework/Widgets/LayoutWidget.cpp | |
258 ${ORTHANC_STONE_ROOT}/Framework/Widgets/TestCairoWidget.cpp | |
259 ${ORTHANC_STONE_ROOT}/Framework/Widgets/TestWorldSceneWidget.cpp | |
260 ${ORTHANC_STONE_ROOT}/Framework/Widgets/WidgetBase.cpp | |
261 ${ORTHANC_STONE_ROOT}/Framework/Widgets/WorldSceneWidget.cpp | |
0 | 262 |
250
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
263 ${ORTHANC_STONE_ROOT}/Framework/Messages/IMessage.h |
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
264 ${ORTHANC_STONE_ROOT}/Framework/Messages/IObservable.h |
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
265 ${ORTHANC_STONE_ROOT}/Framework/Messages/IObserver.h |
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
266 ${ORTHANC_STONE_ROOT}/Framework/Messages/MessageBroker.cpp |
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
267 ${ORTHANC_STONE_ROOT}/Framework/Messages/MessageType.h |
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
268 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
269 ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomPath.cpp |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
270 ${ORTHANC_ROOT}/Plugins/Samples/Common/IOrthancConnection.cpp |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
271 ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomDatasetReader.cpp |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
272 ${ORTHANC_ROOT}/Plugins/Samples/Common/FullOrthancDataset.cpp |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
273 |
80 | 274 ${PLATFORM_SOURCES} |
145 | 275 ${APPLICATIONS_SOURCES} |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
276 ${ORTHANC_CORE_SOURCES} |
256
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
277 ${ORTHANC_DICOM_SOURCES} |
0 | 278 ${AUTOGENERATED_SOURCES} |
279 | |
280 # Mandatory components | |
281 ${CAIRO_SOURCES} | |
282 ${PIXMAN_SOURCES} | |
283 | |
284 # Optional components | |
285 ${SDL_SOURCES} | |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
286 ${QT_SOURCES} |
145 | 287 ${BOOST_EXTENDED_SOURCES} |
0 | 288 ) |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
289 |