comparison Samples/WebAssembly/CMakeLists.txt @ 1471:28c64c246312

working on a shared library
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Jun 2020 12:57:54 +0200
parents 70b0b1dc1de4
children d1dde1f86d4a
comparison
equal deleted inserted replaced
1470:390b0c30ba19 1471:28c64c246312
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/AutoGeneratedCode.cmake)
36 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) 37 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
37 38
38 SET(ENABLE_DCMTK ON) 39 SET(ENABLE_DCMTK ON)
39 SET(ENABLE_GOOGLE_TEST OFF) 40 SET(ENABLE_GOOGLE_TEST OFF)
40 SET(ENABLE_LOCALE ON) # Necessary for text rendering 41 SET(ENABLE_LOCALE ON) # Necessary for text rendering
41 SET(ENABLE_WASM ON) 42 SET(ENABLE_WASM ON)
42 SET(ORTHANC_SANDBOXED ON) 43 SET(ORTHANC_SANDBOXED ON)
44
45 # this will set up the build system for Stone of Orthanc and will
46 # populate the ORTHANC_STONE_SOURCES CMake variable
47 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake)
43 48
44 49
45 # We embed a font to be used for on-screen overlays 50 # We embed a font to be used for on-screen overlays
46 # --------------------------------------------------------------- 51 # ---------------------------------------------------------------
47 52
48 DownloadPackage( 53 DownloadPackage(
49 "a24b8136b8f3bb93f166baf97d9328de" 54 "a24b8136b8f3bb93f166baf97d9328de"
50 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" 55 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip"
51 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") 56 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83")
52 57
53 set(ORTHANC_STONE_APPLICATION_RESOURCES 58 EmbedResources(
54 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf 59 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf
55 ) 60 )
56 61
57 # this will set up the build system for Stone of Orthanc and will
58 # populate the ORTHANC_STONE_SOURCES CMake variable
59 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake)
60
61 add_library(OrthancStone STATIC 62 add_library(OrthancStone STATIC
62 ${ORTHANC_STONE_SOURCES} 63 ${ORTHANC_STONE_SOURCES}
64 ${AUTOGENERATED_SOURCES}
63 ) 65 )
64 66
65 ################################################################################ 67 ################################################################################
66 68
67 # Define the WASM module 69 # Define the WASM module