Mercurial > hg > orthanc-stone
comparison Applications/Samples/WebAssembly/CMakeLists.txt @ 2110:352cb0fa57b2
fixed handling of DefineSourceBasenameForTarget
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Dec 2023 22:20:58 +0100 |
parents | 3ef91da06636 |
children | f8f80e432abc |
comparison
equal
deleted
inserted
replaced
2109:9aa99c45cfaa | 2110:352cb0fa57b2 |
---|---|
87 add_library(OrthancStone STATIC | 87 add_library(OrthancStone STATIC |
88 ${ORTHANC_STONE_SOURCES} | 88 ${ORTHANC_STONE_SOURCES} |
89 ${AUTOGENERATED_SOURCES} | 89 ${AUTOGENERATED_SOURCES} |
90 ) | 90 ) |
91 | 91 |
92 DefineSourceBasenameForTarget(OrthancStone) | 92 if (COMMAND DefineSourceBasenameForTarget) |
93 DefineSourceBasenameForTarget(OrthancStone) | |
94 endif() | |
93 | 95 |
94 | 96 |
95 ################################################################################ | 97 ################################################################################ |
96 | 98 |
97 # Define the WASM module | 99 # Define the WASM module |
105 ../Common/RtViewerApp.h | 107 ../Common/RtViewerApp.h |
106 ../Common/RtViewerView.cpp | 108 ../Common/RtViewerView.cpp |
107 ../Common/RtViewerView.h | 109 ../Common/RtViewerView.h |
108 ) | 110 ) |
109 | 111 |
110 DefineSourceBasenameForTarget(RtViewerWasm) | 112 if (COMMAND DefineSourceBasenameForTarget) |
113 DefineSourceBasenameForTarget(RtViewerWasm) | |
114 endif() | |
111 | 115 |
112 set_target_properties(RtViewerWasm | 116 set_target_properties(RtViewerWasm |
113 PROPERTIES | 117 PROPERTIES |
114 COMPILE_FLAGS "${WASM_FLAGS}" | 118 COMPILE_FLAGS "${WASM_FLAGS}" |
115 LINK_FLAGS "${WASM_LINKER_FLAGS}" | 119 LINK_FLAGS "${WASM_LINKER_FLAGS}" |
147 | 151 |
148 add_executable(SingleFrameViewerWasm | 152 add_executable(SingleFrameViewerWasm |
149 SingleFrameViewer/SingleFrameViewer.cpp | 153 SingleFrameViewer/SingleFrameViewer.cpp |
150 ) | 154 ) |
151 | 155 |
152 DefineSourceBasenameForTarget(SingleFrameViewerWasm) | 156 if (COMMAND DefineSourceBasenameForTarget) |
157 DefineSourceBasenameForTarget(SingleFrameViewerWasm) | |
158 endif() | |
153 | 159 |
154 set_target_properties(SingleFrameViewerWasm | 160 set_target_properties(SingleFrameViewerWasm |
155 PROPERTIES | 161 PROPERTIES |
156 COMPILE_FLAGS "${WASM_FLAGS}" | 162 COMPILE_FLAGS "${WASM_FLAGS}" |
157 LINK_FLAGS "${WASM_LINKER_FLAGS}" | 163 LINK_FLAGS "${WASM_LINKER_FLAGS}" |