Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebAssembly/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 | a48ae10857b1 |
comparison
equal
deleted
inserted
replaced
1547:bf195fc0797e | 1548:65eccce95882 |
---|---|
1 cmake_minimum_required(VERSION 2.8.3) | 1 cmake_minimum_required(VERSION 2.8.3) |
2 | 2 |
3 project(OrthancStone) | 3 project(OrthancStone) |
4 | |
5 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/StoneWebViewer" CACHE PATH "Where to put the WebAssembly binaries") | |
6 | |
4 | 7 |
5 # Configuration of the Emscripten compiler for WebAssembly target | 8 # Configuration of the Emscripten compiler for WebAssembly target |
6 # --------------------------------------------------------------- | 9 # --------------------------------------------------------------- |
7 set(USE_WASM ON CACHE BOOL "") | 10 set(USE_WASM ON CACHE BOOL "") |
8 | 11 |
96 # Declare installation files for the module | 99 # Declare installation files for the module |
97 # --------------------------------------------------------------- | 100 # --------------------------------------------------------------- |
98 | 101 |
99 install( | 102 install( |
100 TARGETS StoneWebViewer | 103 TARGETS StoneWebViewer |
101 RUNTIME DESTINATION . | 104 RUNTIME DESTINATION ${ORTHANC_STONE_INSTALL_PREFIX} |
102 ) | 105 ) |
103 | 106 |
104 | 107 |
105 # Declare installation files for the companion files (web scaffolding) | 108 # Declare installation files for the companion files (web scaffolding) |
106 # please note that ${CMAKE_CURRENT_BINARY_DIR}/StoneWebViewer.js | 109 # please note that ${CMAKE_CURRENT_BINARY_DIR}/StoneWebViewer.js |
113 ${CMAKE_CURRENT_BINARY_DIR}/StoneWebViewer.wasm | 116 ${CMAKE_CURRENT_BINARY_DIR}/StoneWebViewer.wasm |
114 ${CMAKE_SOURCE_DIR}/../WebApplication/app.css | 117 ${CMAKE_SOURCE_DIR}/../WebApplication/app.css |
115 ${CMAKE_SOURCE_DIR}/../WebApplication/app.js | 118 ${CMAKE_SOURCE_DIR}/../WebApplication/app.js |
116 ${CMAKE_SOURCE_DIR}/../WebApplication/index.html | 119 ${CMAKE_SOURCE_DIR}/../WebApplication/index.html |
117 ${STONE_WRAPPER} | 120 ${STONE_WRAPPER} |
118 DESTINATION . | 121 DESTINATION ${ORTHANC_STONE_INSTALL_PREFIX} |
119 ) | 122 ) |
120 | 123 |
121 install( | 124 install( |
122 FILES | 125 FILES |
123 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid1x1.png | 126 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid1x1.png |
124 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid1x2.png | 127 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid1x2.png |
125 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid2x1.png | 128 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid2x1.png |
126 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid2x2.png | 129 ${CMAKE_SOURCE_DIR}/../WebApplication/img/grid2x2.png |
127 ${CMAKE_SOURCE_DIR}/../WebApplication/img/loading.gif | 130 ${CMAKE_SOURCE_DIR}/../WebApplication/img/loading.gif |
128 DESTINATION img | 131 DESTINATION ${ORTHANC_STONE_INSTALL_PREFIX}/img |
129 ) | 132 ) |