Mercurial > hg > orthanc-stone
comparison Applications/Samples/WebAssembly/CMakeLists.txt @ 2115:de049fd88697 deep-learning
integration mainline->deep-learning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 Jan 2024 16:44:40 +0100 |
parents | a6d5373e471c c23eef785569 |
children | 2e050ec85379 |
comparison
equal
deleted
inserted
replaced
2106:5144d59d0fb2 | 2115:de049fd88697 |
---|---|
1 # Stone of Orthanc | 1 # Stone of Orthanc |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
3 # Department, University Hospital of Liege, Belgium | 3 # Department, University Hospital of Liege, Belgium |
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium | 4 # Copyright (C) 2017-2024 Osimis S.A., Belgium |
5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | 5 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
6 # | 6 # |
7 # This program is free software: you can redistribute it and/or | 7 # This program is free software: you can redistribute it and/or |
8 # modify it under the terms of the GNU Affero General Public License | 8 # modify it under the terms of the GNU Affero General Public License |
9 # as published by the Free Software Foundation, either version 3 of | 9 # as published by the Free Software Foundation, either version 3 of |
10 # the License, or (at your option) any later version. | 10 # the License, or (at your option) any later version. |
77 # We embed a font to be used for on-screen overlays | 77 # We embed a font to be used for on-screen overlays |
78 # --------------------------------------------------------------- | 78 # --------------------------------------------------------------- |
79 | 79 |
80 DownloadPackage( | 80 DownloadPackage( |
81 "a24b8136b8f3bb93f166baf97d9328de" | 81 "a24b8136b8f3bb93f166baf97d9328de" |
82 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" | 82 "https://orthanc.uclouvain.be/downloads/third-party-downloads/ubuntu-font-family-0.83.zip" |
83 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") | 83 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") |
84 | 84 |
85 EmbedResources( | 85 EmbedResources( |
86 COLORMAP_HOT ${CMAKE_SOURCE_DIR}/../../Resources/Colormaps/hot.lut | 86 COLORMAP_HOT ${CMAKE_SOURCE_DIR}/../../Resources/Colormaps/hot.lut |
87 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf | 87 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf |
90 add_library(OrthancStone STATIC | 90 add_library(OrthancStone STATIC |
91 ${ORTHANC_STONE_SOURCES} | 91 ${ORTHANC_STONE_SOURCES} |
92 ${AUTOGENERATED_SOURCES} | 92 ${AUTOGENERATED_SOURCES} |
93 ) | 93 ) |
94 | 94 |
95 DefineSourceBasenameForTarget(OrthancStone) | 95 if (COMMAND DefineSourceBasenameForTarget) |
96 DefineSourceBasenameForTarget(OrthancStone) | |
97 endif() | |
96 | 98 |
97 | 99 |
98 ################################################################################ | 100 ################################################################################ |
99 | 101 |
100 # Define the WASM module | 102 # Define the WASM module |
108 ../Common/RtViewerApp.h | 110 ../Common/RtViewerApp.h |
109 ../Common/RtViewerView.cpp | 111 ../Common/RtViewerView.cpp |
110 ../Common/RtViewerView.h | 112 ../Common/RtViewerView.h |
111 ) | 113 ) |
112 | 114 |
113 DefineSourceBasenameForTarget(RtViewerWasm) | 115 if (COMMAND DefineSourceBasenameForTarget) |
116 DefineSourceBasenameForTarget(RtViewerWasm) | |
117 endif() | |
114 | 118 |
115 set_target_properties(RtViewerWasm | 119 set_target_properties(RtViewerWasm |
116 PROPERTIES | 120 PROPERTIES |
117 COMPILE_FLAGS "${WASM_FLAGS}" | 121 COMPILE_FLAGS "${WASM_FLAGS}" |
118 LINK_FLAGS "${WASM_LINKER_FLAGS}" | 122 LINK_FLAGS "${WASM_LINKER_FLAGS}" |
150 | 154 |
151 add_executable(SingleFrameViewerWasm | 155 add_executable(SingleFrameViewerWasm |
152 SingleFrameViewer/SingleFrameViewer.cpp | 156 SingleFrameViewer/SingleFrameViewer.cpp |
153 ) | 157 ) |
154 | 158 |
155 DefineSourceBasenameForTarget(SingleFrameViewerWasm) | 159 if (COMMAND DefineSourceBasenameForTarget) |
160 DefineSourceBasenameForTarget(SingleFrameViewerWasm) | |
161 endif() | |
156 | 162 |
157 set_target_properties(SingleFrameViewerWasm | 163 set_target_properties(SingleFrameViewerWasm |
158 PROPERTIES | 164 PROPERTIES |
159 COMPILE_FLAGS "${WASM_FLAGS}" | 165 COMPILE_FLAGS "${WASM_FLAGS}" |
160 LINK_FLAGS "${WASM_LINKER_FLAGS}" | 166 LINK_FLAGS "${WASM_LINKER_FLAGS}" |