Mercurial > hg > orthanc-stone
comparison Deprecated/Samples/Sdl/CMakeLists.txt @ 1402:65e1e4b08302
moved deprecated samples into Deprecated
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 29 Apr 2020 20:50:53 +0200 |
parents | Samples/Deprecated/Sdl/CMakeLists.txt@eac254fb6791 |
children |
comparison
equal
deleted
inserted
replaced
1401:f6a2d46d2b76 | 1402:65e1e4b08302 |
---|---|
1 cmake_minimum_required(VERSION 2.8.3) | |
2 | |
3 ##################################################################### | |
4 ## Configuration of the Orthanc framework | |
5 ##################################################################### | |
6 | |
7 # This CMake file defines the "ORTHANC_STONE_VERSION" macro, so it | |
8 # must be the first inclusion | |
9 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/Version.cmake) | |
10 | |
11 if (ORTHANC_STONE_VERSION STREQUAL "mainline") | |
12 set(ORTHANC_FRAMEWORK_VERSION "mainline") | |
13 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") | |
14 else() | |
15 set(ORTHANC_FRAMEWORK_VERSION "1.5.7") | |
16 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | |
17 endif() | |
18 | |
19 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") | |
20 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") | |
21 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") | |
22 | |
23 | |
24 ##################################################################### | |
25 ## Configuration of the Stone framework | |
26 ##################################################################### | |
27 | |
28 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneParameters.cmake) | |
29 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
30 | |
31 DownloadPackage( | |
32 "a24b8136b8f3bb93f166baf97d9328de" | |
33 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" | |
34 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") | |
35 | |
36 set(ORTHANC_STONE_APPLICATION_RESOURCES | |
37 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf | |
38 ) | |
39 | |
40 SET(ENABLE_SDL_CONSOLE OFF CACHE BOOL "Enable the use of the MIT-licensed SDL_Console") | |
41 SET(ENABLE_GOOGLE_TEST OFF) | |
42 SET(ENABLE_LOCALE ON) | |
43 SET(ENABLE_SDL ON) | |
44 SET(ENABLE_WEB_CLIENT ON) | |
45 SET(ORTHANC_SANDBOXED OFF) | |
46 LIST(APPEND ORTHANC_BOOST_COMPONENTS program_options) | |
47 | |
48 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneConfiguration.cmake) | |
49 | |
50 add_definitions( | |
51 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 | |
52 ) | |
53 | |
54 | |
55 ##################################################################### | |
56 ## Build the samples | |
57 ##################################################################### | |
58 | |
59 add_library(OrthancStone STATIC | |
60 ${ORTHANC_STONE_SOURCES} | |
61 ) | |
62 | |
63 # | |
64 # BasicScene | |
65 # | |
66 | |
67 add_executable(BasicScene | |
68 BasicScene.cpp | |
69 ) | |
70 | |
71 target_link_libraries(BasicScene OrthancStone) | |
72 | |
73 # | |
74 # TrackerSample | |
75 # | |
76 | |
77 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSample.cpp") | |
78 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSampleApp.cpp") | |
79 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSampleApp.h") | |
80 | |
81 if (MSVC AND MSVC_VERSION GREATER 1700) | |
82 LIST(APPEND TRACKERSAMPLE_SOURCE "cpp.hint") | |
83 endif() | |
84 | |
85 add_executable(TrackerSample | |
86 ${TRACKERSAMPLE_SOURCE} | |
87 ) | |
88 | |
89 target_link_libraries(TrackerSample OrthancStone) | |
90 | |
91 # | |
92 # Loader | |
93 # | |
94 | |
95 add_executable(Loader | |
96 Loader.cpp | |
97 ) | |
98 | |
99 target_link_libraries(Loader OrthancStone) | |
100 | |
101 # | |
102 # FusionMprSdl | |
103 # | |
104 | |
105 add_executable(FusionMprSdl | |
106 FusionMprSdl.cpp | |
107 FusionMprSdl.h | |
108 ) | |
109 | |
110 target_link_libraries(FusionMprSdl OrthancStone) | |
111 | |
112 # | |
113 # Multiplatform Basic Scene | |
114 # | |
115 | |
116 LIST(APPEND MP_BASIC_SCENE_SOURCE "../MultiPlatform/BasicScene/BasicScene.cpp") | |
117 LIST(APPEND MP_BASIC_SCENE_SOURCE "../MultiPlatform/BasicScene/BasicScene.h") | |
118 LIST(APPEND MP_BASIC_SCENE_SOURCE "../MultiPlatform/BasicScene/mainSdl.cpp") | |
119 | |
120 if (MSVC AND MSVC_VERSION GREATER 1700) | |
121 LIST(APPEND MP_BASIC_SCENE_SOURCE "cpp.hint") | |
122 endif() | |
123 | |
124 add_executable(MpBasicScene | |
125 ${MP_BASIC_SCENE_SOURCE} | |
126 ) | |
127 | |
128 target_include_directories(MpBasicScene PUBLIC ${ORTHANC_STONE_ROOT}) | |
129 target_link_libraries(MpBasicScene OrthancStone) |