comparison Samples/Sdl/SingleFrameViewer/CMakeLists.txt @ 1383:ab871499ed30

SingleFrameViewer: refactored file locations + names to share files for RtViewer
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 27 Apr 2020 10:01:03 +0200
parents Samples/Sdl/SimpleViewer/CMakeLists.txt@9d138883be66
children 1c2d065ba372
comparison
equal deleted inserted replaced
1382:9d138883be66 1383:ab871499ed30
1 cmake_minimum_required(VERSION 2.8.10)
2
3 project(SdlSimpleViewer)
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
11 SET(ENABLE_GOOGLE_TEST OFF)
12 SET(ENABLE_LOCALE ON) # Necessary for text rendering
13 SET(ENABLE_QT OFF)
14 SET(ENABLE_SDL ON)
15 SET(ENABLE_DCMTK ON) # <==
16 SET(ENABLE_OPENGL ON) # <==
17 SET(ENABLE_WEB_CLIENT ON)
18 SET(ORTHANC_SANDBOXED OFF)
19
20 include(${STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake)
21 include(${STONE_ROOT}/Resources/CMake/Utilities.cmake)
22
23 include_directories(${STONE_ROOT})
24
25 add_definitions(
26 -DORTHANC_ENABLE_LOGGING=1
27 -DORTHANC_ENABLE_LOGGING_PLUGIN=0
28 -DORTHANC_ENABLE_PUGIXML=0
29 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1
30 )
31
32 SortFilesInSourceGroups()
33
34 add_executable(SdlSimpleViewer
35 ../SdlHelpers.h
36 ../../Common/SampleHelpers.h
37 SdlSimpleViewerApplication.h
38 SdlSimpleViewer.cpp
39 ${ORTHANC_STONE_SOURCES}
40 )
41
42
43 target_link_libraries(SdlSimpleViewer ${DCMTK_LIBRARIES})
44