Mercurial > hg > orthanc-stone
comparison Resources/CMake/OrthancStoneConfiguration.cmake @ 1198:4cc997207d8a broker
fix compatibility between SDL and DCMTK
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 28 Nov 2019 17:13:33 +0100 |
parents | 3284c3fd96ad |
children | 9efa66d8d3f8 |
comparison
equal
deleted
inserted
replaced
1195:bdc6837d5917 | 1198:4cc997207d8a |
---|---|
248 | 248 |
249 ##################################################################### | 249 ##################################################################### |
250 ## All the source files required to build Stone of Orthanc | 250 ## All the source files required to build Stone of Orthanc |
251 ##################################################################### | 251 ##################################################################### |
252 | 252 |
253 set(APPLICATIONS_SOURCES | |
254 ${ORTHANC_STONE_ROOT}/Applications/IStoneApplication.h | |
255 ) | |
256 | |
257 if (NOT ORTHANC_SANDBOXED) | 253 if (NOT ORTHANC_SANDBOXED) |
258 set(PLATFORM_SOURCES | 254 set(PLATFORM_SOURCES |
259 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp | 255 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp |
260 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp | 256 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp |
261 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp | 257 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp |
263 ${ORTHANC_STONE_ROOT}/Platforms/Generic/DelayedCallCommand.cpp | 259 ${ORTHANC_STONE_ROOT}/Platforms/Generic/DelayedCallCommand.cpp |
264 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp | 260 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp |
265 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleDelayedCallExecutor.h | 261 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleDelayedCallExecutor.h |
266 ) | 262 ) |
267 | 263 |
268 if (ENABLE_STONE_DEPRECATED) | 264 if (ENABLE_SDL) |
269 list(APPEND PLATFORM_SOURCES | 265 list(APPEND ORTHANC_STONE_SOURCES |
270 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.cpp | 266 ${ORTHANC_STONE_ROOT}/Framework/Viewport/SdlWindow.cpp |
271 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Viewport/CairoFont.cpp | |
272 ) | 267 ) |
273 endif() | 268 endif() |
274 | 269 |
275 if (ENABLE_SDL OR ENABLE_QT) | 270 if (ENABLE_SDL OR ENABLE_QT) |
276 if (ENABLE_STONE_DEPRECATED) | 271 if (ENABLE_OPENGL) |
277 list(APPEND APPLICATIONS_SOURCES | 272 list(APPEND ORTHANC_STONE_SOURCES |
278 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationRunner.cpp | 273 ${ORTHANC_STONE_ROOT}/Framework/OpenGL/SdlOpenGLContext.cpp |
279 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationContext.cpp | 274 ${ORTHANC_STONE_ROOT}/Framework/Viewport/SdlViewport.cpp |
280 ) | 275 ) |
281 endif() | 276 endif() |
282 | |
283 if (ENABLE_SDL) | |
284 list(APPEND ORTHANC_STONE_SOURCES | |
285 ${ORTHANC_STONE_ROOT}/Framework/Viewport/SdlWindow.cpp | |
286 ) | |
287 | |
288 list(APPEND APPLICATIONS_SOURCES | |
289 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlCairoSurface.cpp | |
290 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlEngine.cpp | |
291 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlOrthancSurface.cpp | |
292 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlStoneApplicationRunner.cpp | |
293 ) | |
294 | |
295 if (ENABLE_OPENGL) | |
296 list(APPEND ORTHANC_STONE_SOURCES | |
297 ${ORTHANC_STONE_ROOT}/Framework/OpenGL/SdlOpenGLContext.cpp | |
298 ${ORTHANC_STONE_ROOT}/Framework/Viewport/SdlViewport.cpp | |
299 ) | |
300 endif() | |
301 endif() | |
302 endif() | 277 endif() |
303 elseif (ENABLE_WASM) | 278 elseif (ENABLE_WASM) |
304 list(APPEND APPLICATIONS_SOURCES | |
305 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp | |
306 ) | |
307 | |
308 set(STONE_WASM_SOURCES | 279 set(STONE_WASM_SOURCES |
309 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp | 280 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp |
310 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmDelayedCallExecutor.cpp | 281 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmDelayedCallExecutor.cpp |
311 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp | 282 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp |
312 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp | 283 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp |
329 OUTPUT "${AUTOGENERATED_DIR}/default-library.c" | 300 OUTPUT "${AUTOGENERATED_DIR}/default-library.c" |
330 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" "" | 301 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" "" |
331 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/default-library.js") | 302 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/default-library.js") |
332 endif() | 303 endif() |
333 | 304 |
334 if (ENABLE_SDL OR ENABLE_WASM) | |
335 list(APPEND APPLICATIONS_SOURCES | |
336 ${ORTHANC_STONE_ROOT}/Applications/Generic/GuiAdapter.cpp | |
337 ${ORTHANC_STONE_ROOT}/Applications/Generic/GuiAdapter.h | |
338 ) | |
339 endif() | |
340 | |
341 if (ENABLE_STONE_DEPRECATED) | 305 if (ENABLE_STONE_DEPRECATED) |
306 if (NOT ORTHANC_SANDBOXED) | |
307 list(APPEND PLATFORM_SOURCES | |
308 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.cpp | |
309 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Viewport/CairoFont.cpp | |
310 ) | |
311 endif() | |
312 | |
313 if (ENABLE_SDL OR ENABLE_WASM) | |
314 list(APPEND APPLICATIONS_SOURCES | |
315 ${ORTHANC_STONE_ROOT}/Applications/Generic/GuiAdapter.cpp | |
316 ${ORTHANC_STONE_ROOT}/Applications/Generic/GuiAdapter.h | |
317 ) | |
318 endif() | |
319 | |
320 if (ENABLE_SDL OR ENABLE_QT) | |
321 list(APPEND APPLICATIONS_SOURCES | |
322 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationRunner.cpp | |
323 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationContext.cpp | |
324 ) | |
325 endif() | |
326 | |
327 if (ENABLE_SDL) | |
328 list(APPEND APPLICATIONS_SOURCES | |
329 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlCairoSurface.cpp | |
330 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlEngine.cpp | |
331 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlOrthancSurface.cpp | |
332 ${ORTHANC_STONE_ROOT}/Applications/Sdl/SdlStoneApplicationRunner.cpp | |
333 ) | |
334 endif() | |
335 | |
336 if (ENABLE_WASM) | |
337 list(APPEND APPLICATIONS_SOURCES | |
338 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp | |
339 ) | |
340 endif() | |
341 | |
342 list(APPEND ORTHANC_STONE_SOURCES | 342 list(APPEND ORTHANC_STONE_SOURCES |
343 ${ORTHANC_STONE_ROOT}/Applications/IStoneApplication.h | |
343 ${ORTHANC_STONE_ROOT}/Applications/StoneApplicationContext.cpp | 344 ${ORTHANC_STONE_ROOT}/Applications/StoneApplicationContext.cpp |
344 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/CircleMeasureTracker.cpp | 345 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/CircleMeasureTracker.cpp |
345 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/ColorFrameRenderer.cpp | 346 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/ColorFrameRenderer.cpp |
346 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/DicomSeriesVolumeSlicer.cpp | 347 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/DicomSeriesVolumeSlicer.cpp |
347 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/DicomStructureSetSlicer.cpp | 348 ${ORTHANC_STONE_ROOT}/Framework/Deprecated/Layers/DicomStructureSetSlicer.cpp |