comparison Applications/StoneWebViewer/Plugin/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 aee0f5f9cf71
children b894072b9e2f
comparison
equal deleted inserted replaced
1547:bf195fc0797e 1548:65eccce95882
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 "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/StoneWebViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") 17 set(ORTHANC_STONE_BINARIES "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/StoneWebViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder")
18 18
19 # Parameters of the build 19 # Parameters of the build
20 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)")
21 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") 21 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\")") 22 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")")
67 ) 67 )
68 68
69 69
70 EmbedResources( 70 EmbedResources(
71 # Folders 71 # Folders
72 IMAGES ${STONE_BINARIES}/img/ 72 IMAGES ${ORTHANC_STONE_BINARIES}/img/
73 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication 73 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication
74 74
75 # Individual files 75 # Individual files
76 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js 76 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js
77 STONE_WEB_VIEWER_JS ${STONE_BINARIES}/StoneWebViewer.js 77 STONE_WEB_VIEWER_JS ${ORTHANC_STONE_BINARIES}/StoneWebViewer.js
78 STONE_WEB_VIEWER_WASM ${STONE_BINARIES}/StoneWebViewer.wasm 78 STONE_WEB_VIEWER_WASM ${ORTHANC_STONE_BINARIES}/StoneWebViewer.wasm
79 STONE_WRAPPER ${STONE_BINARIES}/stone.js 79 STONE_WRAPPER ${ORTHANC_STONE_BINARIES}/stone.js
80 ) 80 )
81 81
82 add_library(StoneWebViewer SHARED 82 add_library(StoneWebViewer SHARED
83 Plugin.cpp 83 Plugin.cpp
84 ${AUTOGENERATED_SOURCES} 84 ${AUTOGENERATED_SOURCES}