Mercurial > hg > orthanc-stone
comparison StoneWebViewer/Plugin/CMakeLists.txt @ 1519:22d1bd085c19
split STONE_BINARIES into two different vars for both
StoneWebViewer and RtViewer
+ fixed docker build
+ embed of RtViewer files
+ serving of RtViewer files
+ Orthanc explorer extension to open a series in
the RtViewer : sibling series will be traversed and the
first DOSE/STRUCT will be used.
WARNING: needs work for PT and to allow for missing dose
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 31 Jul 2020 12:51:28 +0200 |
parents | 244ad1e4e76a |
children | 61023b0d39c8 |
comparison
equal
deleted
inserted
replaced
1518:433cf964838d | 1519:22d1bd085c19 |
---|---|
12 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | 12 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") |
13 endif() | 13 endif() |
14 | 14 |
15 | 15 |
16 | 16 |
17 set(STONE_BINARIES CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") | 17 set(STONE_BINARIES_WEB_VIEWER CACHE PATH "Path to the binaries of the WebViewer \"../WebAssembly\" folder") |
18 set(STONE_BINARIES_RT_VIEWER CACHE PATH "Path to the binaries of the RtViewer \"../WebAssembly\" folder") | |
18 | 19 |
19 # Parameters of the build | 20 # Parameters of the build |
20 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | 21 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
21 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 22 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
22 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") | 23 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") |
68 -DPLUGIN_NAME="stone-webviewer" | 69 -DPLUGIN_NAME="stone-webviewer" |
69 ) | 70 ) |
70 | 71 |
71 | 72 |
72 EmbedResources( | 73 EmbedResources( |
73 # Folders | 74 # Web Viewer Folders |
74 IMAGES ${STONE_BINARIES}/img/ | 75 IMAGES ${STONE_BINARIES_WEB_VIEWER}/img/ |
75 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication | 76 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication |
76 | 77 |
77 # Individual files | 78 # Explorer extension code |
78 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js | 79 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js |
79 STONE_WEB_VIEWER_JS ${STONE_BINARIES}/StoneWebViewer.js | 80 |
80 STONE_WEB_VIEWER_WASM ${STONE_BINARIES}/StoneWebViewer.wasm | 81 # Web viewer individual files |
81 STONE_WRAPPER ${STONE_BINARIES}/stone.js | 82 STONE_WEB_VIEWER_JS ${STONE_BINARIES_WEB_VIEWER}/StoneWebViewer.js |
83 STONE_WEB_VIEWER_WASM ${STONE_BINARIES_WEB_VIEWER}/StoneWebViewer.wasm | |
84 STONE_WRAPPER ${STONE_BINARIES_WEB_VIEWER}/stone.js | |
85 | |
86 # RtViewer folder | |
87 RT_VIEWER_WASM_JS ${STONE_BINARIES_RT_VIEWER}/RtViewerWasm.js | |
88 RT_VIEWER_WASM ${STONE_BINARIES_RT_VIEWER}/RtViewerWasm.wasm | |
89 RT_VIEWER_WASM_APP_JS ${STONE_BINARIES_RT_VIEWER}/RtViewerWasmApp.js | |
90 RT_VIEWER_INDEX_HTML ${STONE_BINARIES_RT_VIEWER}/index.html | |
82 ) | 91 ) |
83 | 92 |
84 add_library(StoneWebViewer SHARED | 93 add_library(StoneWebViewer SHARED |
85 Plugin.cpp | 94 Plugin.cpp |
86 ${AUTOGENERATED_SOURCES} | 95 ${AUTOGENERATED_SOURCES} |