Mercurial > hg > orthanc-stone
comparison OrthancStone/SharedLibrary/WebAssembly/CMakeLists.txt @ 1550:012ab2c1f23b
notes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Aug 2020 21:00:55 +0200 |
parents | a48ae10857b1 |
children | c54bc5bffd01 |
comparison
equal
deleted
inserted
replaced
1549:a48ae10857b1 | 1550:012ab2c1f23b |
---|---|
1 cmake_minimum_required(VERSION 2.8.3) | 1 cmake_minimum_required(VERSION 2.8.3) |
2 | 2 |
3 project(OrthancStoneModule) | 3 project(OrthancStoneModule) |
4 | |
5 | |
6 # Warning message related to WebAssembly modules: We know that 1.38.41 | |
7 # DOES NOT work, but that 1.39.17 works. | |
8 message("") | |
9 message("=== IMPORTANT: Make sure to use a recent version of Emscripten (preferably >= 2.0.0) ===") | |
10 message("") | |
11 | |
4 | 12 |
5 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/OrthancStoneModule" CACHE PATH "Where to put the WebAssembly binaries") | 13 set(ORTHANC_STONE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/OrthancStoneModule" CACHE PATH "Where to put the WebAssembly binaries") |
6 | 14 |
7 | 15 |
8 # Ask for the generation of a side module | 16 # Ask for the generation of a side module |
49 ################################################################################ | 57 ################################################################################ |
50 | 58 |
51 # The source files that register a callback cannot be part of a side | 59 # The source files that register a callback cannot be part of a side |
52 # module, and must be compiled in the main module. The following | 60 # module, and must be compiled in the main module. The following |
53 # command can be used to identify such files: | 61 # command can be used to identify such files: |
54 # $ grep -l -r emscripten_ ../../Sources/ | 62 # $ grep -lrE 'emscripten_' ../../Sources/ |
55 | 63 |
56 set(SOURCES_WITH_EMSCRIPTEN_CALLBACKS | 64 set(SOURCES_WITH_EMSCRIPTEN_CALLBACKS |
57 ${ORTHANC_STONE_ROOT}/Sources/Oracle/WebAssemblyOracle.cpp | 65 ${ORTHANC_STONE_ROOT}/Sources/Oracle/WebAssemblyOracle.cpp |
58 ${ORTHANC_STONE_ROOT}/Sources/Viewport/WebAssemblyViewport.cpp | 66 ${ORTHANC_STONE_ROOT}/Sources/Viewport/WebAssemblyViewport.cpp |
59 ) | 67 ) |