comparison Applications/Samples/CMakeLists.txt @ 324:29a79b8c3d39 am-2

fix SDL build
author am@osimis.io
date Tue, 16 Oct 2018 08:59:23 +0200
parents daa04d15192c
children 37ab9d83dc9b
comparison
equal deleted inserted replaced
323:dbfe2e9e5020 324:29a79b8c3d39
128 #BuildSingleFileSample(OrthancStoneBasicPetCtFusion 5) 128 #BuildSingleFileSample(OrthancStoneBasicPetCtFusion 5)
129 #BuildSingleFileSample(OrthancStoneSynchronizedSeries 6) 129 #BuildSingleFileSample(OrthancStoneSynchronizedSeries 6)
130 #BuildSingleFileSample(OrthancStoneLayoutPetCtFusion 7) 130 #BuildSingleFileSample(OrthancStoneLayoutPetCtFusion 7)
131 BuildSingleFileSample(OrthancStoneSimpleViewerSingleFile SimpleViewerApplicationSingleFile.h 8) # we keep that one just as a sample before we convert another sample to this pattern 131 BuildSingleFileSample(OrthancStoneSimpleViewerSingleFile SimpleViewerApplicationSingleFile.h 8) # we keep that one just as a sample before we convert another sample to this pattern
132 132
133 ##### SimpleViewer sample ####### 133 ##### SimpleViewer sample (Qt and WASM only) #######
134 134
135 if (ENABLE_QT) 135 if (ENABLE_QT OR ENABLE_WASM)
136 list(APPEND SIMPLE_VIEWER_APPLICATION_SOURCES 136
137 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Qt/SimpleViewerMainWindow.cpp 137 if (ENABLE_QT)
138 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Qt/SimpleViewerMainWindow.ui 138 list(APPEND SIMPLE_VIEWER_APPLICATION_SOURCES
139 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Qt/mainQt.cpp 139 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Qt/SimpleViewerMainWindow.cpp
140 ) 140 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Qt/SimpleViewerMainWindow.ui
141 elseif (ENABLE_WASM) 141 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Qt/mainQt.cpp
142 list(APPEND SIMPLE_VIEWER_APPLICATION_SOURCES 142 )
143 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Wasm/mainWasm.cpp 143 elseif (ENABLE_WASM)
144 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Wasm/SimpleViewerWasmApplicationAdapter.cpp 144 list(APPEND SIMPLE_VIEWER_APPLICATION_SOURCES
145 ${STONE_WASM_SOURCES} 145 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Wasm/mainWasm.cpp
146 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Wasm/SimpleViewerWasmApplicationAdapter.cpp
147 ${STONE_WASM_SOURCES}
148 )
149 endif()
150
151 add_executable(OrthancStoneSimpleViewer
152 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/SimpleViewerApplication.cpp
153 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/ThumbnailInteractor.cpp
154 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/MainWidgetInteractor.cpp
155 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/AppStatus.h
156 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Messages.h
157 ${SIMPLE_VIEWER_APPLICATION_SOURCES}
146 ) 158 )
159 target_link_libraries(OrthancStoneSimpleViewer OrthancStone)
160
147 endif() 161 endif()
148
149 add_executable(OrthancStoneSimpleViewer
150 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/SimpleViewerApplication.cpp
151 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/ThumbnailInteractor.cpp
152 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/MainWidgetInteractor.cpp
153 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/AppStatus.h
154 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/Messages.h
155 ${SIMPLE_VIEWER_APPLICATION_SOURCES}
156 )
157 target_link_libraries(OrthancStoneSimpleViewer OrthancStone)
158
159 162
160 ##################################################################### 163 #####################################################################
161 ## Build the unit tests 164 ## Build the unit tests
162 ##################################################################### 165 #####################################################################
163 166