comparison Applications/Samples/CMakeLists.txt @ 1190:f417a0ae282b

wip: TextLayer with new fonts
author Alain Mazy <alain@mazy.be>
date Tue, 26 Nov 2019 15:27:48 +0100
parents f2951ac074bd
children 41d19fa749b7
comparison
equal deleted inserted replaced
1184:848dcba80d81 1190:f417a0ae282b
7 project(OrthancStone) 7 project(OrthancStone)
8 8
9 include(../../Resources/CMake/OrthancStoneParameters.cmake) 9 include(../../Resources/CMake/OrthancStoneParameters.cmake)
10 10
11 set(ENABLE_STONE_DEPRECATED ON) # Need deprecated classes for these samples 11 set(ENABLE_STONE_DEPRECATED ON) # Need deprecated classes for these samples
12 set(EMSCRIPTEN_SET_LLVM_WASM_BACKEND ON)
12 13
13 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) 14 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
14 DownloadPackage( 15 DownloadPackage(
15 "a24b8136b8f3bb93f166baf97d9328de" 16 "a24b8136b8f3bb93f166baf97d9328de"
16 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" 17 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip"
51 set(WASM_FLAGS "-s WASM=1") 52 set(WASM_FLAGS "-s WASM=1")
52 set(WASM_FLAGS "${WASM_FLAGS} -s STRICT=1") # drops support for all deprecated build options 53 set(WASM_FLAGS "${WASM_FLAGS} -s STRICT=1") # drops support for all deprecated build options
53 set(WASM_FLAGS "${WASM_FLAGS} -s FILESYSTEM=1") # if we don't include it, gen_uuid.c fails to build because srand, getpid(), ... are not defined 54 set(WASM_FLAGS "${WASM_FLAGS} -s FILESYSTEM=1") # if we don't include it, gen_uuid.c fails to build because srand, getpid(), ... are not defined
54 set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") # actually enable exception catching 55 set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") # actually enable exception catching
55 set(WASM_FLAGS "${WASM_FLAGS} -s ERROR_ON_MISSING_LIBRARIES=1") 56 set(WASM_FLAGS "${WASM_FLAGS} -s ERROR_ON_MISSING_LIBRARIES=1")
56 57
57 if (CMAKE_BUILD_TYPE MATCHES DEBUG) 58 if (CMAKE_BUILD_TYPE MATCHES DEBUG)
58 set(WASM_FLAGS "${WASM_FLAGS} -g4") # generate debug information 59 set(WASM_FLAGS "${WASM_FLAGS} -g4") # generate debug information
59 set(WASM_FLAGS "${WASM_FLAGS} -s ASSERTIONS=2") # more runtime checks 60 set(WASM_FLAGS "${WASM_FLAGS} -s ASSERTIONS=2") # more runtime checks
60 else() 61 else()
61 set(WASM_FLAGS "${WASM_FLAGS} -Os") # optimize for web (speed and size) 62 set(WASM_FLAGS "${WASM_FLAGS} -Os") # optimize for web (speed and size)
236 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/ThumbnailInteractor.cpp 237 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/ThumbnailInteractor.cpp
237 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/ThumbnailInteractor.h 238 ${ORTHANC_STONE_ROOT}/Applications/Samples/SimpleViewer/ThumbnailInteractor.h
238 ${SIMPLE_VIEWER_APPLICATION_SOURCES} 239 ${SIMPLE_VIEWER_APPLICATION_SOURCES}
239 ) 240 )
240 target_link_libraries(OrthancStoneSimpleViewer OrthancStone) 241 target_link_libraries(OrthancStoneSimpleViewer OrthancStone)
242
243 BuildSingleFileSample(OrthancStoneSingleFrameEditor SingleFrameEditorApplication.h 9)
241 endif() 244 endif()
242 245
243 ##################################################################### 246 #####################################################################
244 ## Build the unit tests 247 ## Build the unit tests
245 ##################################################################### 248 #####################################################################