Mercurial > hg > orthanc-stone
comparison StoneWebViewer/Plugin/CMakeLists.txt @ 1526:61023b0d39c8
Reverted the Stone Web Viewer plugin to rev. 307a805d0587
(mistakenly changed to serve the RT Viewer and make it
available in the Orthanc Explorer while it should have been
done in a separate plugin)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 02 Aug 2020 13:53:48 +0200 |
parents | 22d1bd085c19 |
children | 3eca4f9c2827 |
comparison
equal
deleted
inserted
replaced
1525:31b0449a163a | 1526:61023b0d39c8 |
---|---|
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_WEB_VIEWER CACHE PATH "Path to the binaries of the WebViewer \"../WebAssembly\" folder") | 17 set(STONE_BINARIES CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") |
18 set(STONE_BINARIES_RT_VIEWER CACHE PATH "Path to the binaries of the RtViewer \"../WebAssembly\" folder") | |
19 | 18 |
20 # Parameters of the build | 19 # Parameters of the build |
21 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | 20 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
22 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 21 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
23 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") | 22 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") |
69 -DPLUGIN_NAME="stone-webviewer" | 68 -DPLUGIN_NAME="stone-webviewer" |
70 ) | 69 ) |
71 | 70 |
72 | 71 |
73 EmbedResources( | 72 EmbedResources( |
74 # Web Viewer Folders | 73 # Folders |
75 IMAGES ${STONE_BINARIES_WEB_VIEWER}/img/ | 74 IMAGES ${STONE_BINARIES}/img/ |
76 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication | 75 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication |
77 | 76 |
78 # Explorer extension code | 77 # Individual files |
79 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js | 78 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js |
80 | 79 STONE_WEB_VIEWER_JS ${STONE_BINARIES}/StoneWebViewer.js |
81 # Web viewer individual files | 80 STONE_WEB_VIEWER_WASM ${STONE_BINARIES}/StoneWebViewer.wasm |
82 STONE_WEB_VIEWER_JS ${STONE_BINARIES_WEB_VIEWER}/StoneWebViewer.js | 81 STONE_WRAPPER ${STONE_BINARIES}/stone.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 | |
91 ) | 82 ) |
92 | 83 |
93 add_library(StoneWebViewer SHARED | 84 add_library(StoneWebViewer SHARED |
94 Plugin.cpp | 85 Plugin.cpp |
95 ${AUTOGENERATED_SOURCES} | 86 ${AUTOGENERATED_SOURCES} |