Mercurial > hg > orthanc-stone
comparison Applications/Samples/RtViewerPlugin/CMakeLists.txt @ 1548:65eccce95882
unifying the default install prefix for WebAssembly
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Aug 2020 09:57:35 +0200 |
parents | 8ddf77198ed7 |
children | 8c5f9864545f |
comparison
equal
deleted
inserted
replaced
1547:bf195fc0797e | 1548:65eccce95882 |
---|---|
10 else() | 10 else() |
11 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.7.2") | 11 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.7.2") |
12 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | 12 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") |
13 endif() | 13 endif() |
14 | 14 |
15 set(STONE_BINARIES "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/RtViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") | 15 set(ORTHANC_STONE_BINARIES "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/RtViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") |
16 | 16 |
17 # Parameters of the build | 17 # Parameters of the build |
18 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | 18 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
19 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 19 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
20 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") | 20 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") |
21 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework") | 21 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework") |
65 ) | 65 ) |
66 | 66 |
67 | 67 |
68 EmbedResources( | 68 EmbedResources( |
69 # Web Viewer Folders | 69 # Web Viewer Folders |
70 # IMAGES ${STONE_BINARIES_WEB_VIEWER}/img/ | 70 # IMAGES ${ORTHANC_STONE_BINARIES_WEB_VIEWER}/img/ |
71 # WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication | 71 # WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication |
72 | 72 |
73 # Explorer extension code | 73 # Explorer extension code |
74 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js | 74 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js |
75 | 75 |
76 # RtViewer individual files | 76 # RtViewer individual files |
77 RT_VIEWER_WASM_JS ${STONE_BINARIES}/RtViewerWasm.js | 77 RT_VIEWER_WASM_JS ${ORTHANC_STONE_BINARIES}/RtViewerWasm.js |
78 RT_VIEWER_WASM ${STONE_BINARIES}/RtViewerWasm.wasm | 78 RT_VIEWER_WASM ${ORTHANC_STONE_BINARIES}/RtViewerWasm.wasm |
79 RT_VIEWER_WASM_APP_JS ${STONE_BINARIES}/RtViewerWasmApp.js | 79 RT_VIEWER_WASM_APP_JS ${ORTHANC_STONE_BINARIES}/RtViewerWasmApp.js |
80 RT_VIEWER_INDEX_HTML ${STONE_BINARIES}/index.html | 80 RT_VIEWER_INDEX_HTML ${ORTHANC_STONE_BINARIES}/index.html |
81 ) | 81 ) |
82 | 82 |
83 add_library(RtViewerPlugin SHARED | 83 add_library(RtViewerPlugin SHARED |
84 Plugin.cpp | 84 Plugin.cpp |
85 ${AUTOGENERATED_SOURCES} | 85 ${AUTOGENERATED_SOURCES} |