changeset 1735:2bb735d76726

fix CMake for wasm samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 03 Dec 2020 07:22:00 +0100
parents 940575fba346
children 77038e2bd074
files Applications/Samples/WebAssembly/CMakeLists.txt UnitTestsSources/WebAssembly/CMakeLists.txt
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/WebAssembly/CMakeLists.txt	Wed Dec 02 15:43:58 2020 +0100
+++ b/Applications/Samples/WebAssembly/CMakeLists.txt	Thu Dec 03 07:22:00 2020 +0100
@@ -22,6 +22,16 @@
 
 project(OrthancStone)
 
+set(SAMPLES_VERSION "mainline")
+
+if (SAMPLES_VERSION STREQUAL "mainline")
+  set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
+  set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
+else()
+  set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "82652c5fc04f")
+  set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
+endif()
+
 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/" CACHE PATH "Where to put the WebAssembly binaries")
 
 
--- a/UnitTestsSources/WebAssembly/CMakeLists.txt	Wed Dec 02 15:43:58 2020 +0100
+++ b/UnitTestsSources/WebAssembly/CMakeLists.txt	Thu Dec 03 07:22:00 2020 +0100
@@ -22,6 +22,8 @@
 
 project(OrthancStone)
 
+set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
+set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../wasm-binaries/" CACHE PATH "Where to put the WebAssembly binaries")