Mercurial > hg > orthanc-stone
annotate Applications/Samples/rt-viewer-demo/CMakeLists.txt @ 1323:c0af7657d398 broker
Fixed warnings
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 24 Mar 2020 16:17:03 +0100 |
parents | 0c0fc20a6902 |
children |
rev | line source |
---|---|
549
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8.3) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
2 project(RtViewerDemo) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
3 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
4 if(MSVC) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
5 add_definitions(/MP) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
6 if (CMAKE_BUILD_TYPE MATCHES DEBUG) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
7 add_definitions(/JMC) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
8 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
9 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
10 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
11 message("-------------------------------------------------------------------------------------------------------------------") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
12 message("ORTHANC_FRAMEWORK_ROOT is set to ${ORTHANC_FRAMEWORK_ROOT}") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
13 message("-------------------------------------------------------------------------------------------------------------------") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
14 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
15 if(NOT DEFINED ORTHANC_FRAMEWORK_ROOT) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
16 message(FATAL_ERROR "The location of the Orthanc source repository must be set in the ORTHANC_FRAMEWORK_ROOT CMake variable") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
17 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
18 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
19 message("-------------------------------------------------------------------------------------------------------------------") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
20 message("STONE_SOURCES_DIR is set to ${STONE_SOURCES_DIR}") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
21 message("-------------------------------------------------------------------------------------------------------------------") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
22 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
23 if(NOT DEFINED STONE_SOURCES_DIR) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
24 message(FATAL_ERROR "The location of the Stone of Orthanc source repository must be set in the STONE_SOURCES_DIR CMake variable") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
25 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
26 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
27 include(${STONE_SOURCES_DIR}/Resources/CMake/OrthancStoneParameters.cmake) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
28 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
29 if (OPENSSL_NO_CAPIENG) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
30 add_definitions(-DOPENSSL_NO_CAPIENG=1) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
31 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
32 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
33 set(ENABLE_SDL OFF CACHE BOOL "Target SDL Native application") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
34 set(ENABLE_QT OFF CACHE BOOL "Target Qt Native application") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
35 set(ENABLE_WASM OFF CACHE BOOL "Target WASM application") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
36 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
37 if (ENABLE_WASM) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
38 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
39 ## Configuration of the Emscripten compiler for WebAssembly target |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
40 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
41 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
42 set(WASM_FLAGS "-s WASM=1") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
43 set(WASM_FLAGS "${WASM_FLAGS} -s STRICT=1") # drops support for all deprecated build options |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
44 set(WASM_FLAGS "${WASM_FLAGS} -s FILESYSTEM=1") # if we don't include it, gen_uuid.c fails to build because srand, getpid(), ... are not defined |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
45 set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") # actually enable exception catching |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
46 set(WASM_FLAGS "${WASM_FLAGS} -s ERROR_ON_MISSING_LIBRARIES=1") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
47 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
48 if (CMAKE_BUILD_TYPE MATCHES DEBUG) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
49 set(WASM_FLAGS "${WASM_FLAGS} -g4") # generate debug information |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
50 set(WASM_FLAGS "${WASM_FLAGS} -s ASSERTIONS=2") # more runtime checks |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
51 else() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
52 set(WASM_FLAGS "${WASM_FLAGS} -Os") # optimize for web (speed and size) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
53 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
54 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
55 set(WASM_MODULE_NAME "StoneFrameworkModule" CACHE STRING "Name of the WebAssembly module") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
56 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
57 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WASM_FLAGS}") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
58 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WASM_FLAGS}") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
59 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
60 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${WASM_FLAGS}") # not always clear which flags are for the compiler and which one are for the linker -> pass them all to the linker too |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
61 # set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --js-library ${STONE_SOURCES_DIR}/Applications/Samples/samples-library.js") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
62 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --js-library ${STONE_SOURCES_DIR}/Platforms/Wasm/WasmWebService.js") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
63 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --js-library ${STONE_SOURCES_DIR}/Platforms/Wasm/WasmDelayedCallExecutor.js") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
64 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --js-library ${STONE_SOURCES_DIR}/Platforms/Wasm/default-library.js") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
65 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
66 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s EXPORT_NAME='\"${WASM_MODULE_NAME}\"'") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
67 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ALLOW_MEMORY_GROWTH=1") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
68 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s TOTAL_MEMORY=536870912") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
69 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s TOTAL_STACK=128000000") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
70 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
71 add_definitions(-DORTHANC_ENABLE_WASM=1) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
72 set(ORTHANC_SANDBOXED ON) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
73 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
74 elseif (ENABLE_QT OR ENABLE_SDL) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
75 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
76 set(ENABLE_NATIVE ON) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
77 set(ORTHANC_SANDBOXED OFF) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
78 set(ENABLE_CRYPTO_OPTIONS ON) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
79 set(ENABLE_GOOGLE_TEST ON) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
80 set(ENABLE_WEB_CLIENT ON) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
81 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
82 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
83 |
857
0c0fc20a6902
macro ORTHANC_ENABLE_LOGGING_PLUGIN must be defined per app, not by stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
549
diff
changeset
|
84 |
549
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
85 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
86 ## Configuration for Orthanc |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
87 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
88 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
89 if (ORTHANC_STONE_VERSION STREQUAL "mainline") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
90 set(ORTHANC_FRAMEWORK_VERSION "mainline") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
91 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
92 else() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
93 set(ORTHANC_FRAMEWORK_VERSION "1.4.1") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
94 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
95 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
96 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
97 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
98 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
99 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
100 |
857
0c0fc20a6902
macro ORTHANC_ENABLE_LOGGING_PLUGIN must be defined per app, not by stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
549
diff
changeset
|
101 add_definitions( |
0c0fc20a6902
macro ORTHANC_ENABLE_LOGGING_PLUGIN must be defined per app, not by stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
549
diff
changeset
|
102 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
0c0fc20a6902
macro ORTHANC_ENABLE_LOGGING_PLUGIN must be defined per app, not by stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
549
diff
changeset
|
103 ) |
0c0fc20a6902
macro ORTHANC_ENABLE_LOGGING_PLUGIN must be defined per app, not by stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
549
diff
changeset
|
104 |
549
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
105 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
106 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
107 ## Build a static library containing the Orthanc Stone framework |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
108 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
109 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
110 LIST(APPEND ORTHANC_BOOST_COMPONENTS program_options) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
111 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
112 include(${STONE_SOURCES_DIR}/Resources/CMake/OrthancStoneConfiguration.cmake) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
113 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
114 add_library(OrthancStone STATIC |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
115 ${ORTHANC_STONE_SOURCES} |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
116 ) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
117 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
118 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
119 ## Build all the sample applications |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
120 ##################################################################### |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
121 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
122 include_directories(${ORTHANC_STONE_ROOT}) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
123 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
124 list(APPEND RTVIEWERDEMO_APPLICATION_SOURCES |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
125 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleInteractor.h |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
126 ${ORTHANC_STONE_ROOT}/Applications/Samples/SampleApplicationBase.h |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
127 ) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
128 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
129 if (ENABLE_WASM) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
130 list(APPEND RTVIEWERDEMO_APPLICATION_SOURCES |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
131 ${STONE_WASM_SOURCES} |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
132 ) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
133 endif() |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
134 |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
135 add_executable(RtViewerDemo |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
136 main.cpp |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
137 ${RTVIEWERDEMO_APPLICATION_SOURCES} |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
138 ) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
139 set_target_properties(RtViewerDemo PROPERTIES COMPILE_DEFINITIONS ORTHANC_STONE_SAMPLE=3) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
140 target_include_directories(RtViewerDemo PRIVATE ${ORTHANC_STONE_ROOT}) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
141 target_link_libraries(RtViewerDemo OrthancStone) |
1d9deb4ee84c
Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
142 |