Mercurial > hg > orthanc-stone
annotate Resources/CMake/OrthancStoneConfiguration.cmake @ 551:90f3a60576a9 dev rtviewer19
Merged in ct-pet-dose-struct (pull request #2)
Ct pet dose struct
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 02 Apr 2019 14:02:12 +0000 |
parents | 7016c35d163c |
children | 1201b12eb9f8 |
rev | line source |
---|---|
47 | 1 # Stone of Orthanc |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
439 | 4 # Copyright (C) 2017-2019 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 |
338 | 25 if (ENABLE_DCMTK) |
26 set(ENABLE_LOCALE ON) | |
27 else() | |
28 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) | |
29 endif() | |
30 | |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
31 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
212
5412adf19980
resort to OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
205
diff
changeset
|
32 include_directories(${ORTHANC_ROOT}) |
462
d93aff4e602a
fix for include not found in Orthanc
Alain Mazy <alain@mazy.be>
parents:
457
diff
changeset
|
33 include_directories(${ORTHANC_ROOT}/Core/Images) # hack for the numerous #include "../Enumerations.h" in Orthanc to work |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
34 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
35 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
36 ##################################################################### |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
37 ## Sanity check of the configuration |
0 | 38 ##################################################################### |
39 | |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
40 if (ORTHANC_SANDBOXED) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
41 if (ENABLE_CURL) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
42 message(FATAL_ERROR "Cannot enable curl in sandboxed environments") |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
43 endif() |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
44 |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
45 if (ENABLE_SDL) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
46 message(FATAL_ERROR "Cannot enable SDL in sandboxed environments") |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
47 endif() |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
48 |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
49 if (ENABLE_QT) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
50 message(FATAL_ERROR "Cannot enable QT in sandboxed environments") |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
51 endif() |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
52 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
53 if (ENABLE_SSL) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
54 message(FATAL_ERROR "Cannot enable SSL in sandboxed environments") |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
55 endif() |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
56 endif() |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
57 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
58 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
59 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
60 ## Configure mandatory third-party components |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
61 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
62 |
215 | 63 SET(ORTHANC_STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
64 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
65 include(FindPkgConfig) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
66 include(${CMAKE_CURRENT_LIST_DIR}/BoostExtendedConfiguration.cmake) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
67 include(${CMAKE_CURRENT_LIST_DIR}/CairoConfiguration.cmake) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
68 include(${CMAKE_CURRENT_LIST_DIR}/PixmanConfiguration.cmake) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
69 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
70 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
71 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
72 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
73 ## Configure optional third-party components |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
74 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
75 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
76 if (NOT ORTHANC_SANDBOXED) |
22
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
77 list(APPEND ORTHANC_STONE_SOURCES |
38 | 78 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancHttpConnection.cpp |
22
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
79 ) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
80 endif() |
22
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
81 |
b01d46e5a2b3
support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
21
diff
changeset
|
82 |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
83 if (ENABLE_SDL AND ENABLE_QT) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
84 message("SDL and QT may not be defined together") |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
85 elseif(ENABLE_SDL) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
86 message("SDL is enabled") |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
87 include(${CMAKE_CURRENT_LIST_DIR}/SdlConfiguration.cmake) |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
88 add_definitions(-DORTHANC_ENABLE_NATIVE=1) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
89 add_definitions(-DORTHANC_ENABLE_QT=0) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
90 add_definitions(-DORTHANC_ENABLE_SDL=1) |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
91 elseif(ENABLE_QT) |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
92 message("QT is enabled") |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
93 include(${CMAKE_CURRENT_LIST_DIR}/QtConfiguration.cmake) |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
94 add_definitions(-DORTHANC_ENABLE_NATIVE=1) |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
95 add_definitions(-DORTHANC_ENABLE_QT=1) |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
96 add_definitions(-DORTHANC_ENABLE_SDL=0) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
97 else() |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
98 message("SDL and QT are both disabled") |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
99 unset(USE_SYSTEM_SDL CACHE) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
100 add_definitions(-DORTHANC_ENABLE_SDL=0) |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
101 add_definitions(-DORTHANC_ENABLE_QT=0) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
102 add_definitions(-DORTHANC_ENABLE_NATIVE=0) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
103 endif() |
0 | 104 |
509
1b9973905e15
Fix to use js callbacks attached to 'window' + dummy changes in cmake files
Benjamin Golinvaux <bgo@osimis.io>
parents:
506
diff
changeset
|
105 |
1b9973905e15
Fix to use js callbacks attached to 'window' + dummy changes in cmake files
Benjamin Golinvaux <bgo@osimis.io>
parents:
506
diff
changeset
|
106 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
107 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
108 ## Configuration of the C/C++ macros |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
109 ##################################################################### |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
110 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
111 if (MSVC) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
112 # Remove some warnings on Visual Studio 2015 |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
113 add_definitions(-D_SCL_SECURE_NO_WARNINGS=1) |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
114 endif() |
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
115 |
0 | 116 add_definitions( |
31
9aace933cb64
sharing code with the Orthanc core
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
26
diff
changeset
|
117 -DHAS_ORTHANC_EXCEPTION=1 |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
118 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
0 | 119 ) |
120 | |
267 | 121 if (CMAKE_BUILD_TYPE STREQUAL "Debug") |
122 add_definitions(-DCHECK_OBSERVERS_MESSAGES) | |
123 endif() | |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
124 |
0 | 125 ##################################################################### |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
126 ## Embed the colormaps into the binaries |
0 | 127 ##################################################################### |
128 | |
129 EmbedResources( | |
256
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
130 # 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
|
131 # 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
|
132 # "OrthancStoneParameters.cmake" |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
133 ${DCMTK_DICTIONARIES} |
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
134 |
343 | 135 FONT_UBUNTU_MONO_BOLD_16 ${ORTHANC_ROOT}/Resources/Fonts/UbuntuMonoBold-16.json |
345 | 136 #FONT_UBUNTU_MONO_BOLD_64 ${ORTHANC_ROOT}/Resources/Fonts/UbuntuMonoBold-64.json |
343 | 137 |
256
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
138 # Resources specific to the Stone of Orthanc |
215 | 139 COLORMAP_HOT ${ORTHANC_STONE_ROOT}/Resources/Colormaps/hot.lut |
140 COLORMAP_JET ${ORTHANC_STONE_ROOT}/Resources/Colormaps/jet.lut | |
141 COLORMAP_RED ${ORTHANC_STONE_ROOT}/Resources/Colormaps/red.lut | |
142 COLORMAP_GREEN ${ORTHANC_STONE_ROOT}/Resources/Colormaps/green.lut | |
143 COLORMAP_BLUE ${ORTHANC_STONE_ROOT}/Resources/Colormaps/blue.lut | |
0 | 144 ) |
145 | |
146 | |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
147 |
0 | 148 ##################################################################### |
149 ## System-specific patches | |
150 ##################################################################### | |
151 | |
152 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND | |
153 NOT MSVC AND | |
154 ENABLE_SDL) | |
155 # This is necessary when compiling EXE for Windows using MinGW | |
156 link_libraries(mingw32) | |
157 endif() | |
158 | |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
159 if (ORTHANC_SANDBOXED) |
114
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
160 # Remove functions not suitable for a sandboxed environment |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
161 list(REMOVE_ITEM ORTHANC_CORE_SOURCES |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
162 ${ZLIB_SOURCES_DIR}/gzlib.c |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
163 ${ZLIB_SOURCES_DIR}/gzwrite.c |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
164 ${ZLIB_SOURCES_DIR}/gzread.c |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
165 ) |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
166 endif() |
3541fc81331a
starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
113
diff
changeset
|
167 |
0 | 168 |
169 | |
170 ##################################################################### | |
171 ## All the source files required to build Stone of Orthanc | |
172 ##################################################################### | |
173 | |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
174 set(APPLICATIONS_SOURCES |
288 | 175 ${ORTHANC_STONE_ROOT}/Applications/IStoneApplication.h |
176 ${ORTHANC_STONE_ROOT}/Applications/StoneApplicationContext.cpp | |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
177 ) |
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
178 |
115
f598ffb81cda
fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
114
diff
changeset
|
179 if (NOT ORTHANC_SANDBOXED) |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
180 set(PLATFORM_SOURCES |
365
ef31240a73f6
no automatic call to moc and uic, CircleMeasureTracker using Orthanc fonts
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
345
diff
changeset
|
181 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoFont.cpp |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
250
diff
changeset
|
182 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp |
215 | 183 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp |
184 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp | |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
307
diff
changeset
|
185 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceDeleteCommand.cpp |
431
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
186 ${ORTHANC_STONE_ROOT}/Platforms/Generic/DelayedCallCommand.cpp |
215 | 187 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp |
434
3a8bcc45c221
moved the HTTP cache from OrthancApiClient to BaseWebService (not implemented yet in WASM)
am@osimis.io
parents:
431
diff
changeset
|
188 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.cpp |
431
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
189 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleDelayedCallExecutor.h |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
190 ) |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
191 |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
192 if (ENABLE_SDL OR ENABLE_QT) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
193 list(APPEND APPLICATIONS_SOURCES |
291 | 194 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationRunner.cpp |
195 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationContext.cpp | |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
196 ) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
197 if (ENABLE_SDL) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
198 list(APPEND APPLICATIONS_SOURCES |
294 | 199 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlStoneApplicationRunner.cpp |
274
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
200 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlEngine.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
201 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlCairoSurface.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
202 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlOrthancSurface.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
203 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlWindow.cpp |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
204 ) |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
205 endif() |
dc1beee33134
split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents:
270
diff
changeset
|
206 endif() |
295
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
207 elseif (ENABLE_WASM) |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
208 list(APPEND APPLICATIONS_SOURCES |
242 | 209 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp |
255 | 210 ) |
211 | |
212 set(STONE_WASM_SOURCES | |
244 | 213 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp |
431
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
214 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmDelayedCallExecutor.cpp |
244 | 215 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp |
216 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp | |
307 | 217 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmPlatformApplicationAdapter.cpp |
295
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
218 ${AUTOGENERATED_DIR}/WasmWebService.c |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
219 ${AUTOGENERATED_DIR}/default-library.c |
255 | 220 ) |
295
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
221 |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
222 # Regenerate a dummy "WasmWebService.c" file each time the "WasmWebService.js" file |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
223 # is modified, so as to force a new execution of the linking |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
224 add_custom_command( |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
225 OUTPUT "${AUTOGENERATED_DIR}/WasmWebService.c" |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
226 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmWebService.c" "" |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
227 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.js") |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
228 add_custom_command( |
431
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
229 OUTPUT "${AUTOGENERATED_DIR}/WasmDelayedCallExecutor.c" |
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
230 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmDelayedCallExecutor.c" "" |
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
231 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmDelayedCallExecutor.js") |
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
232 add_custom_command( |
295
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
233 OUTPUT "${AUTOGENERATED_DIR}/default-library.c" |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
234 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" "" |
b04b13810540
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents:
294
diff
changeset
|
235 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/default-library.js") |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
236 endif() |
80 | 237 |
0 | 238 list(APPEND ORTHANC_STONE_SOURCES |
215 | 239 #${ORTHANC_STONE_ROOT}/Framework/Layers/SeriesFrameRendererFactory.cpp |
240 #${ORTHANC_STONE_ROOT}/Framework/Layers/SingleFrameRendererFactory.cpp | |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
241 |
215 | 242 ${ORTHANC_STONE_ROOT}/Framework/Layers/CircleMeasureTracker.cpp |
243 ${ORTHANC_STONE_ROOT}/Framework/Layers/ColorFrameRenderer.cpp | |
402
72355b637945
removed VolumeSlicerBase
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
398
diff
changeset
|
244 ${ORTHANC_STONE_ROOT}/Framework/Layers/DicomSeriesVolumeSlicer.cpp |
398
d257ea56b7be
renamed DicomStructureSetRendererFactory as DicomStructureSetSlicer, VolumeImageSource as VolumeImageMPRSlicer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
396
diff
changeset
|
245 ${ORTHANC_STONE_ROOT}/Framework/Layers/DicomStructureSetSlicer.cpp |
215 | 246 ${ORTHANC_STONE_ROOT}/Framework/Layers/FrameRenderer.cpp |
247 ${ORTHANC_STONE_ROOT}/Framework/Layers/GrayscaleFrameRenderer.cpp | |
396
ed7146fa2c98
rename ILayerSource as IVolumeSlicer, and OrthancFrameLayerSource as as DicomSeriesVolumeSlicer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
393
diff
changeset
|
248 ${ORTHANC_STONE_ROOT}/Framework/Layers/IVolumeSlicer.h |
215 | 249 ${ORTHANC_STONE_ROOT}/Framework/Layers/LineLayerRenderer.cpp |
250 ${ORTHANC_STONE_ROOT}/Framework/Layers/LineMeasureTracker.cpp | |
251 ${ORTHANC_STONE_ROOT}/Framework/Layers/RenderStyle.cpp | |
252 ${ORTHANC_STONE_ROOT}/Framework/Layers/SliceOutlineRenderer.cpp | |
430 | 253 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyAlphaLayer.cpp |
254 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyDicomLayer.cpp | |
415
c0589c3173fd
finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
414
diff
changeset
|
255 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayer.cpp |
c0589c3173fd
finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
414
diff
changeset
|
256 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerCropTracker.cpp |
480
2f6ecb5037ea
added mouse tracker for Layer Mask. Everything seems ok
am@osimis.io
parents:
475
diff
changeset
|
257 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerMaskTracker.cpp |
414 | 258 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerMoveTracker.cpp |
415
c0589c3173fd
finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
414
diff
changeset
|
259 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerResizeTracker.cpp |
414 | 260 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerRotateTracker.cpp |
475
3c28542229a3
added a mask layer in the RadiographyWidget (to be cleaned)
am@osimis.io
parents:
462
diff
changeset
|
261 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyMaskLayer.cpp |
408 | 262 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyScene.cpp |
413 | 263 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographySceneCommand.cpp |
430 | 264 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographySceneReader.cpp |
265 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographySceneWriter.cpp | |
266 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyTextLayer.cpp | |
413 | 267 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyWidget.cpp |
415
c0589c3173fd
finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
414
diff
changeset
|
268 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyWindowingTracker.cpp |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
269 ${ORTHANC_STONE_ROOT}/Framework/SmartLoader.cpp |
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
270 ${ORTHANC_STONE_ROOT}/Framework/StoneEnumerations.cpp |
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
271 ${ORTHANC_STONE_ROOT}/Framework/StoneException.h |
409 | 272 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/AffineTransform2D.cpp |
434
3a8bcc45c221
moved the HTTP cache from OrthancApiClient to BaseWebService (not implemented yet in WASM)
am@osimis.io
parents:
431
diff
changeset
|
273 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/BaseWebService.cpp |
215 | 274 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/CoordinateSystem3D.cpp |
275 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomFrameConverter.cpp | |
276 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomStructureSet.cpp | |
277 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DownloadStack.cpp | |
278 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Extent2D.cpp | |
279 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/FiniteProjectiveCamera.cpp | |
280 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/GeometryToolbox.cpp | |
431
26b90b110719
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
am@osimis.io
parents:
430
diff
changeset
|
281 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IDelayedCallExecutor.h |
377 | 282 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IWebService.cpp |
215 | 283 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ImageGeometry.cpp |
284 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/LinearAlgebra.cpp | |
285 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/MessagingToolbox.cpp | |
286 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrientedBoundingBox.cpp | |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
287 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrthancApiClient.cpp |
215 | 288 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrthancSlicesLoader.cpp |
289 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ParallelSlices.cpp | |
290 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ParallelSlicesCursor.cpp | |
291 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ShearWarpProjectiveTransform.cpp | |
292 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Slice.cpp | |
293 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/SlicesSorter.cpp | |
409 | 294 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/UndoRedoStack.cpp |
215 | 295 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ViewportGeometry.cpp |
296 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoContext.cpp | |
297 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoSurface.cpp | |
457
3b4df9925db6
added support for 'touch' in mouse trackers. This is still a bit hacky and we need to refactor it to make it clean. Thanks to that, Pan and zoom are available together with 2 touches
Alain Mazy <alain@mazy.be>
parents:
440
diff
changeset
|
298 ${ORTHANC_STONE_ROOT}/Framework/Viewport/IMouseTracker.h |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
299 ${ORTHANC_STONE_ROOT}/Framework/Viewport/IStatusBar.h |
330 | 300 ${ORTHANC_STONE_ROOT}/Framework/Viewport/IViewport.h |
215 | 301 ${ORTHANC_STONE_ROOT}/Framework/Viewport/WidgetViewport.cpp |
302 ${ORTHANC_STONE_ROOT}/Framework/Volumes/ImageBuffer3D.cpp | |
303 ${ORTHANC_STONE_ROOT}/Framework/Volumes/StructureSetLoader.cpp | |
304 ${ORTHANC_STONE_ROOT}/Framework/Volumes/VolumeReslicer.cpp | |
305 ${ORTHANC_STONE_ROOT}/Framework/Widgets/CairoWidget.cpp | |
306 ${ORTHANC_STONE_ROOT}/Framework/Widgets/EmptyWidget.cpp | |
327 | 307 ${ORTHANC_STONE_ROOT}/Framework/Widgets/IWidget.h |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
308 ${ORTHANC_STONE_ROOT}/Framework/Widgets/IWorldSceneInteractor.h |
281 | 309 ${ORTHANC_STONE_ROOT}/Framework/Widgets/IWorldSceneMouseTracker.h |
215 | 310 ${ORTHANC_STONE_ROOT}/Framework/Widgets/LayoutWidget.cpp |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
311 ${ORTHANC_STONE_ROOT}/Framework/Widgets/PanMouseTracker.cpp |
457
3b4df9925db6
added support for 'touch' in mouse trackers. This is still a bit hacky and we need to refactor it to make it clean. Thanks to that, Pan and zoom are available together with 2 touches
Alain Mazy <alain@mazy.be>
parents:
440
diff
changeset
|
312 ${ORTHANC_STONE_ROOT}/Framework/Widgets/PanZoomMouseTracker.cpp |
388
20f149669c1f
renamed LayerWidget as SliceViewerWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
377
diff
changeset
|
313 ${ORTHANC_STONE_ROOT}/Framework/Widgets/SliceViewerWidget.cpp |
215 | 314 ${ORTHANC_STONE_ROOT}/Framework/Widgets/TestCairoWidget.cpp |
315 ${ORTHANC_STONE_ROOT}/Framework/Widgets/TestWorldSceneWidget.cpp | |
316 ${ORTHANC_STONE_ROOT}/Framework/Widgets/WidgetBase.cpp | |
317 ${ORTHANC_STONE_ROOT}/Framework/Widgets/WorldSceneWidget.cpp | |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
318 ${ORTHANC_STONE_ROOT}/Framework/Widgets/ZoomMouseTracker.cpp |
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
319 ${ORTHANC_STONE_ROOT}/Framework/dev.h |
0 | 320 |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
295
diff
changeset
|
321 ${ORTHANC_STONE_ROOT}/Framework/Messages/ICallable.h |
250
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
322 ${ORTHANC_STONE_ROOT}/Framework/Messages/IMessage.h |
403 | 323 ${ORTHANC_STONE_ROOT}/Framework/Messages/IObservable.cpp |
250
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
324 ${ORTHANC_STONE_ROOT}/Framework/Messages/IObserver.h |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
295
diff
changeset
|
325 ${ORTHANC_STONE_ROOT}/Framework/Messages/MessageBroker.h |
302
4a79193ffb58
support for custom messages + no leaks in unit-tests
am@osimis.io
parents:
300
diff
changeset
|
326 ${ORTHANC_STONE_ROOT}/Framework/Messages/MessageForwarder.cpp |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
295
diff
changeset
|
327 ${ORTHANC_STONE_ROOT}/Framework/Messages/Promise.h |
250
5e642859267e
added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents:
249
diff
changeset
|
328 |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
329 ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomDatasetReader.cpp |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
330 ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomPath.cpp |
332
50e5ec1bdd46
separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
330
diff
changeset
|
331 ${ORTHANC_ROOT}/Plugins/Samples/Common/FullOrthancDataset.cpp |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
332 ${ORTHANC_ROOT}/Plugins/Samples/Common/IOrthancConnection.cpp |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
333 |
80 | 334 ${PLATFORM_SOURCES} |
145 | 335 ${APPLICATIONS_SOURCES} |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
336 ${ORTHANC_CORE_SOURCES} |
256
86ccff58f344
fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
215
diff
changeset
|
337 ${ORTHANC_DICOM_SOURCES} |
0 | 338 ${AUTOGENERATED_SOURCES} |
339 | |
340 # Mandatory components | |
341 ${CAIRO_SOURCES} | |
342 ${PIXMAN_SOURCES} | |
343 | |
344 # Optional components | |
345 ${SDL_SOURCES} | |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
274
diff
changeset
|
346 ${QT_SOURCES} |
145 | 347 ${BOOST_EXTENDED_SOURCES} |
0 | 348 ) |
221
d7b2590744f8
wip: building applications reusable in SDL and WASM
am@osimis.io
parents:
215
diff
changeset
|
349 |
413 | 350 |
351 | |
352 | |
353 ## | |
354 ## TEST - Automatically add all ".h" headers to the list of sources | |
355 ## | |
356 | |
357 macro(AutodetectHeaderFiles SOURCES_VAR) | |
358 set(TMP) | |
359 | |
360 foreach(f IN LISTS ${SOURCES_VAR}) | |
361 get_filename_component(_base ${f} NAME_WE) | |
362 get_filename_component(_dir ${f} DIRECTORY) | |
363 get_filename_component(_extension ${f} EXT) | |
364 set(_header ${_dir}/${_base}.h) | |
365 | |
366 if ((_extension STREQUAL ".cpp" OR | |
367 _extension STREQUAL ".cc" OR | |
368 _extension STREQUAL ".h") AND | |
369 EXISTS ${_header} AND | |
370 NOT IS_DIRECTORY ${_header} AND | |
371 NOT IS_SYMLINK ${_header}) | |
372 | |
414 | 373 # Prevent adding the header twice if it is already manually |
374 # specified in the sources | |
413 | 375 list (FIND SOURCES_VAR ${_header} _index) |
376 if (${_index} EQUAL -1) | |
377 list(APPEND TMP ${_header}) | |
378 endif() | |
379 endif() | |
380 endforeach() | |
381 | |
382 list(APPEND ${SOURCES_VAR} ${TMP}) | |
383 endmacro() | |
384 | |
385 | |
386 AutodetectHeaderFiles(ORTHANC_STONE_SOURCES) |