Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebAssembly/CMakeLists.txt @ 2082:a6d5373e471c deep-learning
integration mainline->deep-learning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Oct 2023 17:10:45 +0200 |
parents | fdb012c86a75 3ef91da06636 |
children | de049fd88697 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/CMakeLists.txt Wed Jul 12 21:21:11 2023 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/CMakeLists.txt Wed Oct 11 17:10:45 2023 +0200 @@ -38,7 +38,7 @@ endif() set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ENVIRONMENT=web") -set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") +set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1") set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ALLOW_MEMORY_GROWTH=1 -s TOTAL_MEMORY=268435456") # 256MB + resize set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1") @@ -60,6 +60,7 @@ SET(ENABLE_DCMTK_TRANSCODING OFF) SET(ENABLE_GOOGLE_TEST OFF) SET(ENABLE_LOCALE ON) # Necessary for text rendering +SET(ENABLE_MODULE_JOBS OFF) SET(ENABLE_PUGIXML ON) # Necessary for OsiriX annotations SET(ORTHANC_SANDBOXED ON) SET(ENABLE_PROTOBUF ON) # Necessary for deep learning @@ -99,7 +100,7 @@ # Create the wrapper to call C++ from JavaScript # --------------------------------------------------------------- -set(LIBCLANG "libclang-4.0.so.1" CACHE PATH "Version of clang to generate the code model") +set(LIBCLANG "libclang.so.1" CACHE PATH "Version of clang to generate the code model") set(STONE_WRAPPER ${CMAKE_CURRENT_BINARY_DIR}/stone.js) include(FindPython3 OPTIONAL RESULT_VARIABLE HAS_CMAKE_PYTHON3) @@ -153,6 +154,9 @@ StoneWebViewer.cpp ) +# Boost::Math begs for -std=c++14 since Boost 1.82.0 +set_property(TARGET StoneWebViewer PROPERTY CXX_STANDARD 14) + DefineSourceBasenameForTarget(StoneWebViewer) set_target_properties(StoneWebViewer