Mercurial > hg > orthanc-stone
comparison Applications/Samples/WebAssembly/CMakeLists.txt @ 1735:2bb735d76726
fix CMake for wasm samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Dec 2020 07:22:00 +0100 |
parents | 1e6d3289b1ad |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1734:940575fba346 | 1735:2bb735d76726 |
---|---|
19 | 19 |
20 cmake_minimum_required(VERSION 2.8.3) | 20 cmake_minimum_required(VERSION 2.8.3) |
21 cmake_policy(SET CMP0058 NEW) | 21 cmake_policy(SET CMP0058 NEW) |
22 | 22 |
23 project(OrthancStone) | 23 project(OrthancStone) |
24 | |
25 set(SAMPLES_VERSION "mainline") | |
26 | |
27 if (SAMPLES_VERSION STREQUAL "mainline") | |
28 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline") | |
29 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") | |
30 else() | |
31 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "82652c5fc04f") | |
32 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | |
33 endif() | |
24 | 34 |
25 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/" CACHE PATH "Where to put the WebAssembly binaries") | 35 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/" CACHE PATH "Where to put the WebAssembly binaries") |
26 | 36 |
27 | 37 |
28 # Configuration of the Emscripten compiler for WebAssembly target | 38 # Configuration of the Emscripten compiler for WebAssembly target |