Mercurial > hg > orthanc-stone
comparison Samples/Sdl/CMakeLists.txt @ 600:6129b1e5ba42
BasicScene SDL sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 27 Apr 2019 12:38:25 +0200 |
parents | |
children | 86dfde451f4c |
comparison
equal
deleted
inserted
replaced
599:6da17230c7a3 | 600:6129b1e5ba42 |
---|---|
1 cmake_minimum_required(VERSION 2.8.3) | |
2 | |
3 | |
4 ##################################################################### | |
5 ## Configuration of the Orthanc framework | |
6 ##################################################################### | |
7 | |
8 # This CMake file defines the "ORTHANC_STONE_VERSION" macro, so it | |
9 # must be the first inclusion | |
10 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/Version.cmake) | |
11 | |
12 if (ORTHANC_STONE_VERSION STREQUAL "mainline") | |
13 set(ORTHANC_FRAMEWORK_VERSION "mainline") | |
14 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") | |
15 else() | |
16 set(ORTHANC_FRAMEWORK_VERSION "1.5.7") | |
17 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | |
18 endif() | |
19 | |
20 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") | |
21 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") | |
22 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") | |
23 | |
24 | |
25 ##################################################################### | |
26 ## Configuration of the Stone framework | |
27 ##################################################################### | |
28 | |
29 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneParameters.cmake) | |
30 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
31 | |
32 DownloadPackage( | |
33 "a24b8136b8f3bb93f166baf97d9328de" | |
34 "http://orthanc.osimis.io/ThirdPartyDownloads/ubuntu-font-family-0.83.zip" | |
35 "${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83") | |
36 | |
37 set(ORTHANC_STONE_APPLICATION_RESOURCES | |
38 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf | |
39 ) | |
40 | |
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 include_directories(${ORTHANC_STONE_ROOT}) | |
51 | |
52 | |
53 ##################################################################### | |
54 ## Build the samples | |
55 ##################################################################### | |
56 | |
57 add_library(OrthancStone STATIC | |
58 ${ORTHANC_STONE_SOURCES} | |
59 ) | |
60 | |
61 add_executable(BasicScene | |
62 BasicScene.cpp | |
63 ) | |
64 | |
65 target_link_libraries(BasicScene OrthancStone) |