Mercurial > hg > orthanc-stone
comparison StoneWebViewer/WebAssembly/CMakeLists.txt @ 1512:244ad1e4e76a
reorganization of folders
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 16:21:02 +0200 |
parents | d8af188ab545 |
children | 2b7d34cb764f |
comparison
equal
deleted
inserted
replaced
1511:9dfeee74c1e6 | 1512:244ad1e4e76a |
---|---|
3 project(OrthancStone) | 3 project(OrthancStone) |
4 | 4 |
5 # Configuration of the Emscripten compiler for WebAssembly target | 5 # Configuration of the Emscripten compiler for WebAssembly target |
6 # --------------------------------------------------------------- | 6 # --------------------------------------------------------------- |
7 set(USE_WASM ON CACHE BOOL "") | 7 set(USE_WASM ON CACHE BOOL "") |
8 set(ORTHANC_FRAMEWORK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../../orthanc/OrthancFramework CACHE PATH "") | |
9 set(STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../) | |
10 | 8 |
11 set(EMSCRIPTEN_SET_LLVM_WASM_BACKEND ON CACHE BOOL "") | 9 set(EMSCRIPTEN_SET_LLVM_WASM_BACKEND ON CACHE BOOL "") |
12 | 10 |
13 set(WASM_FLAGS "-s WASM=1 -s FETCH=1") | 11 set(WASM_FLAGS "-s WASM=1 -s FETCH=1") |
14 if (CMAKE_BUILD_TYPE STREQUAL "Debug") | 12 if (CMAKE_BUILD_TYPE STREQUAL "Debug") |
28 ) | 26 ) |
29 | 27 |
30 # Stone of Orthanc configuration | 28 # Stone of Orthanc configuration |
31 # --------------------------------------------------------------- | 29 # --------------------------------------------------------------- |
32 set(ALLOW_DOWNLOADS ON) | 30 set(ALLOW_DOWNLOADS ON) |
33 set(ORTHANC_FRAMEWORK_SOURCE "path") | |
34 | 31 |
35 include(${STONE_ROOT}/Resources/CMake/OrthancStoneParameters.cmake) | 32 include(${CMAKE_SOURCE_DIR}/../../OrthancStone/Resources/CMake/OrthancStoneParameters.cmake) |
36 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/AutoGeneratedCode.cmake) | |
37 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
38 | 33 |
39 SET(ENABLE_DCMTK ON) | 34 SET(ENABLE_DCMTK ON) |
40 SET(ENABLE_DCMTK_NETWORKING OFF) | 35 SET(ENABLE_DCMTK_NETWORKING OFF) |
41 SET(ENABLE_DCMTK_TRANSCODING OFF) | 36 SET(ENABLE_DCMTK_TRANSCODING OFF) |
42 SET(ENABLE_GOOGLE_TEST OFF) | 37 SET(ENABLE_GOOGLE_TEST OFF) |
44 SET(ENABLE_WASM ON) | 39 SET(ENABLE_WASM ON) |
45 SET(ORTHANC_SANDBOXED ON) | 40 SET(ORTHANC_SANDBOXED ON) |
46 | 41 |
47 # this will set up the build system for Stone of Orthanc and will | 42 # this will set up the build system for Stone of Orthanc and will |
48 # populate the ORTHANC_STONE_SOURCES CMake variable | 43 # populate the ORTHANC_STONE_SOURCES CMake variable |
49 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) | 44 include(${ORTHANC_STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) |
50 | 45 |
51 | 46 |
52 ################################################################################ | 47 ################################################################################ |
53 | 48 |
54 project(StoneWebViewer) | 49 project(StoneWebViewer) |