Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/WebAssemblyUnitTests/CMakeLists.txt @ 2081:3ef91da06636
fix compatibility with Emscripten 3.1.47
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Oct 2023 16:38:38 +0200 |
parents | 07964689cb0b |
children | a6d5373e471c 352cb0fa57b2 |
comparison
equal
deleted
inserted
replaced
2080:3ca565841402 | 2081:3ef91da06636 |
---|---|
37 set(WASM_FLAGS "-s WASM=1 -s FETCH=1 -s ASSERTIONS=1 -s DISABLE_EXCEPTION_CATCHING=0") | 37 set(WASM_FLAGS "-s WASM=1 -s FETCH=1 -s ASSERTIONS=1 -s DISABLE_EXCEPTION_CATCHING=0") |
38 if (CMAKE_BUILD_TYPE STREQUAL "Debug") | 38 if (CMAKE_BUILD_TYPE STREQUAL "Debug") |
39 set(WASM_FLAGS "${WASM_FLAGS} -s SAFE_HEAP=1") | 39 set(WASM_FLAGS "${WASM_FLAGS} -s SAFE_HEAP=1") |
40 endif() | 40 endif() |
41 | 41 |
42 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") | 42 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") |
43 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1") | 43 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1") |
44 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ALLOW_MEMORY_GROWTH=1 -s TOTAL_MEMORY=268435456") # 256MB + resize | 44 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ALLOW_MEMORY_GROWTH=1 -s TOTAL_MEMORY=268435456") # 256MB + resize |
45 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1") | 45 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1") |
46 add_definitions( | 46 add_definitions( |
47 -DDISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 | 47 -DDISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 |
53 # --------------------------------------------------------------- | 53 # --------------------------------------------------------------- |
54 set(ALLOW_DOWNLOADS ON) | 54 set(ALLOW_DOWNLOADS ON) |
55 | 55 |
56 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyParameters.cmake) | 56 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyParameters.cmake) |
57 | 57 |
58 SET(ENABLE_DCMTK ON) # Necessary for the tests of the Orthanc framework | 58 SET(ENABLE_DCMTK ON) # Necessary for the tests of the Orthanc framework |
59 SET(ENABLE_PUGIXML ON) # Necessary for the tests of the Orthanc framework | |
60 SET(ENABLE_GOOGLE_TEST OFF) | 59 SET(ENABLE_GOOGLE_TEST OFF) |
61 SET(ENABLE_LOCALE ON) # Necessary for text rendering | 60 SET(ENABLE_LOCALE ON) # Necessary for text rendering |
62 SET(ENABLE_LUA ON) # Necessary for the tests of the Orthanc framework | 61 SET(ENABLE_LUA ON) # Necessary for the tests of the Orthanc framework |
62 SET(ENABLE_MODULE_JOBS OFF) | |
63 SET(ENABLE_PUGIXML ON) # Necessary for the tests of the Orthanc framework | |
63 SET(ORTHANC_SANDBOXED ON) | 64 SET(ORTHANC_SANDBOXED ON) |
64 | 65 |
65 # this will set up the build system for Stone of Orthanc and will | 66 # this will set up the build system for Stone of Orthanc and will |
66 # populate the ORTHANC_STONE_SOURCES CMake variable | 67 # populate the ORTHANC_STONE_SOURCES CMake variable |
67 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyConfiguration.cmake) | 68 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyConfiguration.cmake) |
116 ${BOOST_EXTENDED_SOURCES} | 117 ${BOOST_EXTENDED_SOURCES} |
117 ${GOOGLE_TEST_SOURCES} | 118 ${GOOGLE_TEST_SOURCES} |
118 ${ORTHANC_STONE_SOURCES} | 119 ${ORTHANC_STONE_SOURCES} |
119 ) | 120 ) |
120 | 121 |
122 # Boost::Math begs for -std=c++14 since Boost 1.82.0 | |
123 set_property(TARGET UnitTests PROPERTY CXX_STANDARD 14) | |
124 | |
121 DefineSourceBasenameForTarget(UnitTests) | 125 DefineSourceBasenameForTarget(UnitTests) |
122 | 126 |
123 | 127 |
124 # Declare installation files for the module | 128 # Declare installation files for the module |
125 # --------------------------------------------------------------- | 129 # --------------------------------------------------------------- |