annotate Resources/CMake/OrthancStoneConfiguration.cmake @ 427:3f9017db1738 am-vsol-upgrade-radiography-export

wip
author am@osimis.io
date Fri, 23 Nov 2018 16:06:23 +0100
parents c0589c3173fd
children f87f28624b96 b85f635f1eb5 b70e9be013e4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
1 # Stone of Orthanc
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
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
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
5 #
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
6 # This program is free software: you can redistribute it and/or
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
7 # modify it under the terms of the GNU Affero General Public License
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
8 # as published by the Free Software Foundation, either version 3 of
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
9 # the License, or (at your option) any later version.
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
10 #
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
11 # This program is distributed in the hope that it will be useful, but
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
14 # Affero General Public License for more details.
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
15 #
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
16 # You should have received a copy of the GNU Affero General Public License
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
18
28956ed68280 agpl license
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 40
diff changeset
19
20
946377d1c992 skeleton for unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 16
diff changeset
20
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
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
b3b3fa0e3689 BitmapStack
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 332
diff changeset
25 if (ENABLE_DCMTK)
b3b3fa0e3689 BitmapStack
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 332
diff changeset
26 set(ENABLE_LOCALE ON)
b3b3fa0e3689 BitmapStack
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 332
diff changeset
27 else()
b3b3fa0e3689 BitmapStack
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 332
diff changeset
28 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost)
b3b3fa0e3689 BitmapStack
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 332
diff changeset
29 endif()
b3b3fa0e3689 BitmapStack
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 332
diff changeset
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})
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
33
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 #####################################################################
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
36 ## Sanity check of the configuration
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 #####################################################################
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
39 if (ORTHANC_SANDBOXED)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
40 if (ENABLE_CURL)
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
41 message(FATAL_ERROR "Cannot enable curl in sandboxed environments")
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
42 endif()
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
43
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
44 if (ENABLE_SDL)
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
45 message(FATAL_ERROR "Cannot enable SDL in sandboxed environments")
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
46 endif()
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
47
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
48 if (ENABLE_QT)
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
49 message(FATAL_ERROR "Cannot enable QT in sandboxed environments")
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
50 endif()
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
51
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
52 if (ENABLE_SSL)
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
53 message(FATAL_ERROR "Cannot enable SSL in sandboxed environments")
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
54 endif()
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
55 endif()
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
56
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 #####################################################################
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
59 ## Configure mandatory third-party components
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
60 #####################################################################
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
61
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
62 SET(ORTHANC_STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
63
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
64 include(FindPkgConfig)
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
65 include(${CMAKE_CURRENT_LIST_DIR}/BoostExtendedConfiguration.cmake)
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
66 include(${CMAKE_CURRENT_LIST_DIR}/CairoConfiguration.cmake)
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
67 include(${CMAKE_CURRENT_LIST_DIR}/PixmanConfiguration.cmake)
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
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 ## Configure optional third-party components
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
73 #####################################################################
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 if (NOT ORTHANC_SANDBOXED)
22
b01d46e5a2b3 support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 21
diff changeset
76 list(APPEND ORTHANC_STONE_SOURCES
38
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 36
diff changeset
77 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancHttpConnection.cpp
22
b01d46e5a2b3 support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 21
diff changeset
78 )
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
79 endif()
22
b01d46e5a2b3 support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 21
diff changeset
80
b01d46e5a2b3 support for sandboxed environments
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 21
diff changeset
81
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
82 if (ENABLE_SDL AND ENABLE_QT)
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
83 message("SDL and QT may not be defined together")
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
84 elseif(ENABLE_SDL)
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
85 message("SDL is enabled")
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
86 include(${CMAKE_CURRENT_LIST_DIR}/SdlConfiguration.cmake)
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
87 add_definitions(-DORTHANC_ENABLE_NATIVE=1)
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
88 add_definitions(-DORTHANC_ENABLE_QT=0)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
89 add_definitions(-DORTHANC_ENABLE_SDL=1)
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
90 elseif(ENABLE_QT)
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
91 message("QT is enabled")
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
92 include(${CMAKE_CURRENT_LIST_DIR}/QtConfiguration.cmake)
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
93 add_definitions(-DORTHANC_ENABLE_NATIVE=1)
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
94 add_definitions(-DORTHANC_ENABLE_QT=1)
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
95 add_definitions(-DORTHANC_ENABLE_SDL=0)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
96 else()
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
97 message("SDL and QT are both disabled")
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
98 unset(USE_SYSTEM_SDL CACHE)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
99 add_definitions(-DORTHANC_ENABLE_SDL=0)
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
100 add_definitions(-DORTHANC_ENABLE_QT=0)
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
101 add_definitions(-DORTHANC_ENABLE_NATIVE=0)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
102 endif()
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
105
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
106 #####################################################################
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
107 ## Configuration of the C/C++ macros
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
108 #####################################################################
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 if (MSVC)
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
111 # Remove some warnings on Visual Studio 2015
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
112 add_definitions(-D_SCL_SECURE_NO_WARNINGS=1)
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
113 endif()
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
114
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 add_definitions(
31
9aace933cb64 sharing code with the Orthanc core
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 26
diff changeset
116 -DHAS_ORTHANC_EXCEPTION=1
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
117 -DORTHANC_ENABLE_LOGGING_PLUGIN=0
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 )
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119
267
89d02de83c03 added declaretion of messages handled/emitted
am@osimis.io
parents: 266
diff changeset
120 if (CMAKE_BUILD_TYPE STREQUAL "Debug")
89d02de83c03 added declaretion of messages handled/emitted
am@osimis.io
parents: 266
diff changeset
121 add_definitions(-DCHECK_OBSERVERS_MESSAGES)
89d02de83c03 added declaretion of messages handled/emitted
am@osimis.io
parents: 266
diff changeset
122 endif()
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
123
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 #####################################################################
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
125 ## Embed the colormaps into the binaries
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 #####################################################################
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128 EmbedResources(
256
86ccff58f344 fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 215
diff changeset
129 # 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
130 # 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
131 # "OrthancStoneParameters.cmake"
86ccff58f344 fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 215
diff changeset
132 ${DCMTK_DICTIONARIES}
86ccff58f344 fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 215
diff changeset
133
343
712acc87fa2e text layer
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 338
diff changeset
134 FONT_UBUNTU_MONO_BOLD_16 ${ORTHANC_ROOT}/Resources/Fonts/UbuntuMonoBold-16.json
345
55438b1ca317 drawing borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 343
diff changeset
135 #FONT_UBUNTU_MONO_BOLD_64 ${ORTHANC_ROOT}/Resources/Fonts/UbuntuMonoBold-64.json
343
712acc87fa2e text layer
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 338
diff changeset
136
256
86ccff58f344 fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 215
diff changeset
137 # Resources specific to the Stone of Orthanc
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
138 COLORMAP_HOT ${ORTHANC_STONE_ROOT}/Resources/Colormaps/hot.lut
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
139 COLORMAP_JET ${ORTHANC_STONE_ROOT}/Resources/Colormaps/jet.lut
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
140 COLORMAP_RED ${ORTHANC_STONE_ROOT}/Resources/Colormaps/red.lut
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
141 COLORMAP_GREEN ${ORTHANC_STONE_ROOT}/Resources/Colormaps/green.lut
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
142 COLORMAP_BLUE ${ORTHANC_STONE_ROOT}/Resources/Colormaps/blue.lut
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
143 )
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
145
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
146
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147 #####################################################################
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
148 ## System-specific patches
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
149 #####################################################################
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
150
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
151 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
152 NOT MSVC AND
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
153 ENABLE_SDL)
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
154 # This is necessary when compiling EXE for Windows using MinGW
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155 link_libraries(mingw32)
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
156 endif()
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
158 if (ORTHANC_SANDBOXED)
114
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
159 # Remove functions not suitable for a sandboxed environment
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
160 list(REMOVE_ITEM ORTHANC_CORE_SOURCES
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
161 ${ZLIB_SOURCES_DIR}/gzlib.c
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
162 ${ZLIB_SOURCES_DIR}/gzwrite.c
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
163 ${ZLIB_SOURCES_DIR}/gzread.c
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
164 )
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
165 endif()
3541fc81331a starting WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 113
diff changeset
166
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169 #####################################################################
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 ## All the source files required to build Stone of Orthanc
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171 #####################################################################
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172
221
d7b2590744f8 wip: building applications reusable in SDL and WASM
am@osimis.io
parents: 215
diff changeset
173 set(APPLICATIONS_SOURCES
288
8c8da145fefa renamings and doc
am@osimis.io
parents: 287
diff changeset
174 ${ORTHANC_STONE_ROOT}/Applications/IStoneApplication.h
8c8da145fefa renamings and doc
am@osimis.io
parents: 287
diff changeset
175 ${ORTHANC_STONE_ROOT}/Applications/StoneApplicationContext.cpp
307
be2660b6e40a wip: commands + status update
am@osimis.io
parents: 302
diff changeset
176 ${ORTHANC_STONE_ROOT}/Applications/Commands/BaseCommandBuilder.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
177 ${ORTHANC_STONE_ROOT}/Applications/Commands/ICommand.h
b04b13810540 unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents: 294
diff changeset
178 ${ORTHANC_STONE_ROOT}/Applications/Commands/ICommandExecutor.h
307
be2660b6e40a wip: commands + status update
am@osimis.io
parents: 302
diff changeset
179 ${ORTHANC_STONE_ROOT}/Applications/Commands/ICommandBuilder.h
221
d7b2590744f8 wip: building applications reusable in SDL and WASM
am@osimis.io
parents: 215
diff changeset
180 )
d7b2590744f8 wip: building applications reusable in SDL and WASM
am@osimis.io
parents: 215
diff changeset
181
115
f598ffb81cda fix sandboxed build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 114
diff changeset
182 if (NOT ORTHANC_SANDBOXED)
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
183 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
184 ${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
185 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
186 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
187 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp
315
aad37d0b6407 Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents: 307
diff changeset
188 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceDeleteCommand.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
189 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp
249
54c7284b0eff merged useful changes from branch am
am@osimis.io
parents: 244
diff changeset
190 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.h
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
191 )
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
192
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
193 if (ENABLE_SDL OR ENABLE_QT)
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
194 list(APPEND APPLICATIONS_SOURCES
291
87376a645ee1 renaming
am@osimis.io
parents: 288
diff changeset
195 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationRunner.cpp
87376a645ee1 renaming
am@osimis.io
parents: 288
diff changeset
196 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationContext.cpp
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
197 )
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
198 if (ENABLE_SDL)
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
199 list(APPEND APPLICATIONS_SOURCES
294
faccc4b07b92 renamings
am@osimis.io
parents: 291
diff changeset
200 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlStoneApplicationRunner.cpp
274
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
201 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlEngine.cpp
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
202 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlCairoSurface.cpp
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
203 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlOrthancSurface.cpp
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
204 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlWindow.cpp
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
205 )
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
206 endif()
dc1beee33134 split SdlApplication into NativeApplication and SdlApplication
am@osimis.io
parents: 270
diff changeset
207 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
208 elseif (ENABLE_WASM)
221
d7b2590744f8 wip: building applications reusable in SDL and WASM
am@osimis.io
parents: 215
diff changeset
209 list(APPEND APPLICATIONS_SOURCES
242
092db46c6291 improved SDL/Wasm unification
am@osimis.io
parents: 222
diff changeset
210 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp
255
65562a28fe05 fixes for WASM
am@osimis.io
parents: 251
diff changeset
211 )
65562a28fe05 fixes for WASM
am@osimis.io
parents: 251
diff changeset
212
65562a28fe05 fixes for WASM
am@osimis.io
parents: 251
diff changeset
213 set(STONE_WASM_SOURCES
244
313903066093 cleanup
am@osimis.io
parents: 243
diff changeset
214 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp
313903066093 cleanup
am@osimis.io
parents: 243
diff changeset
215 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp
313903066093 cleanup
am@osimis.io
parents: 243
diff changeset
216 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp
307
be2660b6e40a wip: commands + status update
am@osimis.io
parents: 302
diff changeset
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
65562a28fe05 fixes for WASM
am@osimis.io
parents: 251
diff changeset
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(
b04b13810540 unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
am@osimis.io
parents: 294
diff changeset
229 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
230 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
231 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
232 endif()
80
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 73
diff changeset
233
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234 list(APPEND ORTHANC_STONE_SOURCES
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
235 #${ORTHANC_STONE_ROOT}/Framework/Layers/SeriesFrameRendererFactory.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
236 #${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
237
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
238 ${ORTHANC_STONE_ROOT}/Framework/Layers/CircleMeasureTracker.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
239 ${ORTHANC_STONE_ROOT}/Framework/Layers/ColorFrameRenderer.cpp
402
72355b637945 removed VolumeSlicerBase
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 398
diff changeset
240 ${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
241 ${ORTHANC_STONE_ROOT}/Framework/Layers/DicomStructureSetSlicer.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
242 ${ORTHANC_STONE_ROOT}/Framework/Layers/FrameRenderer.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
243 ${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
244 ${ORTHANC_STONE_ROOT}/Framework/Layers/IVolumeSlicer.h
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
245 ${ORTHANC_STONE_ROOT}/Framework/Layers/LineLayerRenderer.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
246 ${ORTHANC_STONE_ROOT}/Framework/Layers/LineMeasureTracker.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
247 ${ORTHANC_STONE_ROOT}/Framework/Layers/RenderStyle.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
248 ${ORTHANC_STONE_ROOT}/Framework/Layers/SliceOutlineRenderer.cpp
415
c0589c3173fd finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 414
diff changeset
249 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayer.cpp
c0589c3173fd finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 414
diff changeset
250 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerCropTracker.cpp
414
f7616c010056 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
251 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerMoveTracker.cpp
415
c0589c3173fd finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 414
diff changeset
252 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerResizeTracker.cpp
414
f7616c010056 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
253 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyLayerRotateTracker.cpp
408
6834c236b36d reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 405
diff changeset
254 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyScene.cpp
413
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
255 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographySceneCommand.cpp
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
256 ${ORTHANC_STONE_ROOT}/Framework/Radiography/RadiographyWidget.cpp
415
c0589c3173fd finished reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 414
diff changeset
257 ${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
258 ${ORTHANC_STONE_ROOT}/Framework/SmartLoader.cpp
50e5ec1bdd46 separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 330
diff changeset
259 ${ORTHANC_STONE_ROOT}/Framework/StoneEnumerations.cpp
50e5ec1bdd46 separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 330
diff changeset
260 ${ORTHANC_STONE_ROOT}/Framework/StoneException.h
409
99c9b3238008 AffineTransform2D
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 408
diff changeset
261 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/AffineTransform2D.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
262 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/CoordinateSystem3D.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
263 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomFrameConverter.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
264 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomStructureSet.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
265 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DownloadStack.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
266 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Extent2D.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
267 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/FiniteProjectiveCamera.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
268 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/GeometryToolbox.cpp
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 365
diff changeset
269 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IWebService.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
270 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ImageGeometry.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
271 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/LinearAlgebra.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
272 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/MessagingToolbox.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
273 ${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
274 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrthancApiClient.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
275 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrthancSlicesLoader.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
276 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ParallelSlices.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
277 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ParallelSlicesCursor.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
278 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ShearWarpProjectiveTransform.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
279 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Slice.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
280 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/SlicesSorter.cpp
409
99c9b3238008 AffineTransform2D
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 408
diff changeset
281 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/UndoRedoStack.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
282 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ViewportGeometry.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
283 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoContext.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
284 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoSurface.cpp
332
50e5ec1bdd46 separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 330
diff changeset
285 ${ORTHANC_STONE_ROOT}/Framework/Viewport/IStatusBar.h
330
7a364e44fbb4 renamed SetDefaultView in FitContent
am@osimis.io
parents: 327
diff changeset
286 ${ORTHANC_STONE_ROOT}/Framework/Viewport/IViewport.h
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
287 ${ORTHANC_STONE_ROOT}/Framework/Viewport/WidgetViewport.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
288 ${ORTHANC_STONE_ROOT}/Framework/Volumes/ImageBuffer3D.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
289 ${ORTHANC_STONE_ROOT}/Framework/Volumes/StructureSetLoader.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
290 ${ORTHANC_STONE_ROOT}/Framework/Volumes/VolumeReslicer.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
291 ${ORTHANC_STONE_ROOT}/Framework/Widgets/CairoWidget.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
292 ${ORTHANC_STONE_ROOT}/Framework/Widgets/EmptyWidget.cpp
327
8716176ff7f0 added support for arrow keys
am@osimis.io
parents: 315
diff changeset
293 ${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
294 ${ORTHANC_STONE_ROOT}/Framework/Widgets/IWorldSceneInteractor.h
281
300d8b8c48b3 mouse tracker tuning
am@osimis.io
parents: 276
diff changeset
295 ${ORTHANC_STONE_ROOT}/Framework/Widgets/IWorldSceneMouseTracker.h
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
296 ${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
297 ${ORTHANC_STONE_ROOT}/Framework/Widgets/PanMouseTracker.cpp
388
20f149669c1f renamed LayerWidget as SliceViewerWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 377
diff changeset
298 ${ORTHANC_STONE_ROOT}/Framework/Widgets/SliceViewerWidget.cpp
215
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
299 ${ORTHANC_STONE_ROOT}/Framework/Widgets/TestCairoWidget.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
300 ${ORTHANC_STONE_ROOT}/Framework/Widgets/TestWorldSceneWidget.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
301 ${ORTHANC_STONE_ROOT}/Framework/Widgets/WidgetBase.cpp
07792a582de9 fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 214
diff changeset
302 ${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
303 ${ORTHANC_STONE_ROOT}/Framework/Widgets/ZoomMouseTracker.cpp
50e5ec1bdd46 separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 330
diff changeset
304 ${ORTHANC_STONE_ROOT}/Framework/dev.h
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 295
diff changeset
306 ${ORTHANC_STONE_ROOT}/Framework/Messages/ICallable.h
250
5e642859267e added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents: 249
diff changeset
307 ${ORTHANC_STONE_ROOT}/Framework/Messages/IMessage.h
403
99e31898910e IObservable.cpp
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 402
diff changeset
308 ${ORTHANC_STONE_ROOT}/Framework/Messages/IObservable.cpp
250
5e642859267e added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents: 249
diff changeset
309 ${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
310 ${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
311 ${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
312 ${ORTHANC_STONE_ROOT}/Framework/Messages/Promise.h
250
5e642859267e added new Observable/Observer & MessageBroker (not used yet)
am@osimis.io
parents: 249
diff changeset
313
332
50e5ec1bdd46 separating ZoomMouseTracker and PanMouseTracker from WorldSceneWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 330
diff changeset
314 ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomDatasetReader.cpp
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
315 ${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
316 ${ORTHANC_ROOT}/Plugins/Samples/Common/FullOrthancDataset.cpp
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
317 ${ORTHANC_ROOT}/Plugins/Samples/Common/IOrthancConnection.cpp
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
318
80
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 73
diff changeset
319 ${PLATFORM_SOURCES}
145
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
320 ${APPLICATIONS_SOURCES}
113
2eca030792aa using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 111
diff changeset
321 ${ORTHANC_CORE_SOURCES}
256
86ccff58f344 fix build if dcmtk is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 215
diff changeset
322 ${ORTHANC_DICOM_SOURCES}
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
323 ${AUTOGENERATED_SOURCES}
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
324
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
325 # Mandatory components
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326 ${CAIRO_SOURCES}
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
327 ${PIXMAN_SOURCES}
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
328
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
329 # Optional components
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
330 ${SDL_SOURCES}
276
5de5699ad570 first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents: 274
diff changeset
331 ${QT_SOURCES}
145
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
332 ${BOOST_EXTENDED_SOURCES}
0
351ab0da0150 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
333 )
221
d7b2590744f8 wip: building applications reusable in SDL and WASM
am@osimis.io
parents: 215
diff changeset
334
413
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
335
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
336
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
337
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
338 ##
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
339 ## TEST - Automatically add all ".h" headers to the list of sources
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
340 ##
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
341
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
342 macro(AutodetectHeaderFiles SOURCES_VAR)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
343 set(TMP)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
344
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
345 foreach(f IN LISTS ${SOURCES_VAR})
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
346 get_filename_component(_base ${f} NAME_WE)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
347 get_filename_component(_dir ${f} DIRECTORY)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
348 get_filename_component(_extension ${f} EXT)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
349 set(_header ${_dir}/${_base}.h)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
350
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
351 if ((_extension STREQUAL ".cpp" OR
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
352 _extension STREQUAL ".cc" OR
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
353 _extension STREQUAL ".h") AND
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
354 EXISTS ${_header} AND
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
355 NOT IS_DIRECTORY ${_header} AND
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
356 NOT IS_SYMLINK ${_header})
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
357
414
f7616c010056 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
358 # Prevent adding the header twice if it is already manually
f7616c010056 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
359 # specified in the sources
413
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
360 list (FIND SOURCES_VAR ${_header} _index)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
361 if (${_index} EQUAL -1)
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
362 list(APPEND TMP ${_header})
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
363 endif()
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
364 endif()
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
365 endforeach()
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
366
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
367 list(APPEND ${SOURCES_VAR} ${TMP})
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
368 endmacro()
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
369
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
370
18b707fb8620 reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 410
diff changeset
371 AutodetectHeaderFiles(ORTHANC_STONE_SOURCES)