Mercurial > hg > orthanc-stone
comparison Samples/Sdl/RtViewer/CMakeLists.txt @ 1384:24bcff8ea58f
RtViewer : SDL ok. Preparation for WASM builds ongoing
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 27 Apr 2020 10:01:48 +0200 |
parents | |
children | dfb48f0794b1 |
comparison
equal
deleted
inserted
replaced
1383:ab871499ed30 | 1384:24bcff8ea58f |
---|---|
1 cmake_minimum_required(VERSION 2.8.10) | |
2 | |
3 project(RtViewerSdl) | |
4 | |
5 set(ORTHANC_FRAMEWORK_SOURCE "path") | |
6 set(ORTHANC_FRAMEWORK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../../../orthanc) | |
7 set(STONE_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../../) | |
8 | |
9 include(${STONE_ROOT}/Resources/CMake/OrthancStoneParameters.cmake) | |
10 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
11 | |
12 SET(ENABLE_GOOGLE_TEST OFF) | |
13 SET(ENABLE_LOCALE ON) # Necessary for text rendering | |
14 SET(ENABLE_QT OFF) | |
15 SET(ENABLE_SDL ON) | |
16 SET(ENABLE_DCMTK ON) # <== | |
17 SET(ENABLE_OPENGL ON) # <== | |
18 SET(ENABLE_WEB_CLIENT ON) | |
19 SET(ORTHANC_SANDBOXED OFF) | |
20 | |
21 DownloadPackage( | |
22 "a24b8136b8f3bb93f166baf97d9328de" | |
23 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" | |
24 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") | |
25 | |
26 set(ORTHANC_STONE_APPLICATION_RESOURCES | |
27 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf | |
28 ) | |
29 | |
30 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) | |
31 include(${STONE_ROOT}/Resources/CMake/Utilities.cmake) | |
32 | |
33 include_directories(${STONE_ROOT}) | |
34 | |
35 add_definitions( | |
36 -DORTHANC_ENABLE_LOGGING=1 | |
37 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 | |
38 -DORTHANC_ENABLE_PUGIXML=0 | |
39 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1 | |
40 ) | |
41 | |
42 SortFilesInSourceGroups() | |
43 | |
44 add_executable(RtViewerSdl | |
45 ../SdlHelpers.h | |
46 RtViewerSdl.cpp | |
47 ../../Common/RtViewer.cpp | |
48 ../../Common/RtViewer.h | |
49 ${ORTHANC_STONE_SOURCES} | |
50 ) | |
51 | |
52 | |
53 target_link_libraries(RtViewerSdl ${DCMTK_LIBRARIES}) | |
54 |