comparison Applications/Samples/Sdl/SingleFrameViewer/CMakeLists.txt @ 1538:d1806b4e4839

moving OrthancStone/Samples/ as Applications/Samples/
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2020 13:24:38 +0200
parents OrthancStone/Samples/Sdl/SingleFrameViewer/CMakeLists.txt@244ad1e4e76a
children
comparison
equal deleted inserted replaced
1537:de8cf5859e84 1538:d1806b4e4839
1 cmake_minimum_required(VERSION 2.8.10)
2
3 project(SdlSimpleViewer)
4
5 include(${CMAKE_SOURCE_DIR}/../../../Resources/CMake/OrthancStoneParameters.cmake)
6
7 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
8 set(ORTHANC_BOOST_COMPONENTS program_options)
9
10 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
11 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
12 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
13 include(${ORTHANC_STONE_ROOT}/Resources/Orthanc/CMake/DownloadPackage.cmake)
14 include(${ORTHANC_STONE_ROOT}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake)
15
16 else()
17 set(ENABLE_GOOGLE_TEST ON)
18 set(ENABLE_LOCALE ON) # Necessary for text rendering
19 set(ENABLE_OPENGL ON) # <==
20 set(ENABLE_WEB_CLIENT ON)
21 endif()
22
23 set(ENABLE_DCMTK ON) # <==
24 set(ENABLE_SDL ON)
25
26 include(${ORTHANC_STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake)
27 include(${CMAKE_SOURCE_DIR}/../Utilities.cmake)
28
29 if (NOT ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
30 # This include must be after "OrthancStoneConfiguration.cmake" to
31 # have "BOOST_SOURCES_DIR" defined
32 include(${CMAKE_SOURCE_DIR}/../BoostExtendedConfiguration.cmake)
33 endif()
34
35 SortFilesInSourceGroups()
36
37 add_executable(SdlSimpleViewer
38 ../SdlHelpers.h
39 ../../Common/SampleHelpers.h
40 SdlSimpleViewerApplication.h
41 SdlSimpleViewer.cpp
42 ${ORTHANC_STONE_SOURCES}
43 )
44
45 target_link_libraries(SdlSimpleViewer ${DCMTK_LIBRARIES})
46