Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/WebAssemblyUnitTests/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 |
comparison
equal
deleted
inserted
replaced
2078:fdb012c86a75 | 2082:a6d5373e471c |
---|---|
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 ENVIRONMENT=web") | 42 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ENVIRONMENT=web") |
43 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") | 43 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]'") |
44 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1") | 44 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s ERROR_ON_UNDEFINED_SYMBOLS=1") |
45 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 ALLOW_MEMORY_GROWTH=1 -s TOTAL_MEMORY=268435456") # 256MB + resize |
46 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1") | 46 set(WASM_LINKER_FLAGS "${WASM_LINKER_FLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1") |
47 add_definitions( | 47 add_definitions( |
48 -DDISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 | 48 -DDISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 |
56 # --------------------------------------------------------------- | 56 # --------------------------------------------------------------- |
57 set(ALLOW_DOWNLOADS ON) | 57 set(ALLOW_DOWNLOADS ON) |
58 | 58 |
59 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyParameters.cmake) | 59 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyParameters.cmake) |
60 | 60 |
61 SET(ENABLE_DCMTK ON) # Necessary for the tests of the Orthanc framework | 61 SET(ENABLE_DCMTK ON) # Necessary for the tests of the Orthanc framework |
62 SET(ENABLE_PUGIXML ON) # Necessary for the tests of the Orthanc framework | |
63 SET(ENABLE_GOOGLE_TEST OFF) | 62 SET(ENABLE_GOOGLE_TEST OFF) |
64 SET(ENABLE_LOCALE ON) # Necessary for text rendering | 63 SET(ENABLE_LOCALE ON) # Necessary for text rendering |
65 SET(ENABLE_LUA ON) # Necessary for the tests of the Orthanc framework | 64 SET(ENABLE_LUA ON) # Necessary for the tests of the Orthanc framework |
65 SET(ENABLE_MODULE_JOBS OFF) | |
66 SET(ENABLE_PUGIXML ON) # Necessary for the tests of the Orthanc framework | |
66 SET(ORTHANC_SANDBOXED ON) | 67 SET(ORTHANC_SANDBOXED ON) |
67 | 68 |
68 # this will set up the build system for Stone of Orthanc and will | 69 # this will set up the build system for Stone of Orthanc and will |
69 # populate the ORTHANC_STONE_SOURCES CMake variable | 70 # populate the ORTHANC_STONE_SOURCES CMake variable |
70 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyConfiguration.cmake) | 71 include(${CMAKE_SOURCE_DIR}/../CMake/OrthancStoneWebAssemblyConfiguration.cmake) |
119 ${BOOST_EXTENDED_SOURCES} | 120 ${BOOST_EXTENDED_SOURCES} |
120 ${GOOGLE_TEST_SOURCES} | 121 ${GOOGLE_TEST_SOURCES} |
121 ${ORTHANC_STONE_SOURCES} | 122 ${ORTHANC_STONE_SOURCES} |
122 ) | 123 ) |
123 | 124 |
125 # Boost::Math begs for -std=c++14 since Boost 1.82.0 | |
126 set_property(TARGET UnitTests PROPERTY CXX_STANDARD 14) | |
127 | |
124 DefineSourceBasenameForTarget(UnitTests) | 128 DefineSourceBasenameForTarget(UnitTests) |
125 | 129 |
126 | 130 |
127 # Declare installation files for the module | 131 # Declare installation files for the module |
128 # --------------------------------------------------------------- | 132 # --------------------------------------------------------------- |