Mercurial > hg > orthanc-stone
comparison Samples/WebAssembly/RtViewer/CMakeLists.txt @ 1393:27e0a00bd3e8
RtViewer SingleFrameViewer OK : wasm SDL single viewport
other viewports ongoing
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 Apr 2020 15:54:18 +0200 |
parents | 5c83be3a6be5 |
children | 3e644f6fadd4 |
comparison
equal
deleted
inserted
replaced
1392:ffdb82850e98 | 1393:27e0a00bd3e8 |
---|---|
31 # --------------------------------------------------------------- | 31 # --------------------------------------------------------------- |
32 set(ALLOW_DOWNLOADS ON) | 32 set(ALLOW_DOWNLOADS ON) |
33 set(ORTHANC_FRAMEWORK_SOURCE "path") | 33 set(ORTHANC_FRAMEWORK_SOURCE "path") |
34 | 34 |
35 include(${STONE_ROOT}/Resources/CMake/OrthancStoneParameters.cmake) | 35 include(${STONE_ROOT}/Resources/CMake/OrthancStoneParameters.cmake) |
36 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
36 | 37 |
37 SET(ENABLE_DCMTK ON) | 38 SET(ENABLE_DCMTK ON) |
38 SET(ENABLE_GOOGLE_TEST OFF) | 39 SET(ENABLE_GOOGLE_TEST OFF) |
39 SET(ENABLE_LOCALE ON) # Necessary for text rendering | 40 SET(ENABLE_LOCALE ON) # Necessary for text rendering |
40 SET(ENABLE_WASM ON) | 41 SET(ENABLE_WASM ON) |
41 SET(ORTHANC_SANDBOXED ON) | 42 SET(ORTHANC_SANDBOXED ON) |
42 | 43 |
44 | |
45 # We embed a font to be used for on-screen overlays | |
46 # --------------------------------------------------------------- | |
47 | |
48 DownloadPackage( | |
49 "a24b8136b8f3bb93f166baf97d9328de" | |
50 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" | |
51 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") | |
52 | |
53 set(ORTHANC_STONE_APPLICATION_RESOURCES | |
54 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf | |
55 ) | |
56 | |
43 # this will set up the build system for Stone of Orthanc and will | 57 # this will set up the build system for Stone of Orthanc and will |
44 # populate the ORTHANC_STONE_SOURCES CMake variable | 58 # populate the ORTHANC_STONE_SOURCES CMake variable |
45 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) | 59 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) |
46 | 60 |
47 include_directories(${STONE_ROOT}) | 61 include_directories(${STONE_ROOT}) |
62 include_directories(../../Common) | |
48 | 63 |
49 # Define the WASM module | 64 # Define the WASM module |
50 # --------------------------------------------------------------- | 65 # --------------------------------------------------------------- |
51 add_executable(RtViewerWasm | 66 add_executable(RtViewerWasm |
52 RtViewerWasm.cpp | 67 RtViewerWasm.cpp |
69 # section above: it is considered to be the binary output of | 84 # section above: it is considered to be the binary output of |
70 # the linker. | 85 # the linker. |
71 # --------------------------------------------------------------- | 86 # --------------------------------------------------------------- |
72 install( | 87 install( |
73 FILES | 88 FILES |
74 ${CMAKE_SOURCE_DIR}/RtViewerApp.js | 89 ${CMAKE_SOURCE_DIR}/RtViewerWasmApp.js |
75 ${CMAKE_SOURCE_DIR}/index.html | 90 ${CMAKE_SOURCE_DIR}/index.html |
76 ${CMAKE_CURRENT_BINARY_DIR}/RtViewerWasm.wasm | 91 ${CMAKE_CURRENT_BINARY_DIR}/RtViewerWasm.wasm |
77 ${CMAKE_SOURCE_DIR}/WasmWrapper.js | |
78 DESTINATION ${CMAKE_INSTALL_PREFIX} | 92 DESTINATION ${CMAKE_INSTALL_PREFIX} |
79 ) | 93 ) |