comparison Samples/Sdl/CMakeLists.txt @ 632:500c3f70b6c2

- Added a ClearAllChains method to PolylineSceneLayer --> revision must change when calling it ==> BumpRevision has been added to base class - Added some docs = Added GetMinDepth + GetMaxDepth to Scene2D (to alleviate the need for app- specific "Z depth registry" : clients may simply add a new layer on top or at the bottom of the existing layer set. - Added the line tracker measurement tools, commands and trackers. Generic base classes + Line measure - started work on the line measure handles
author Benjamin Golinvaux <bgo@osimis.io>
date Thu, 09 May 2019 10:41:31 +0200
parents 97926984d5d0
children b0652595b62a
comparison
equal deleted inserted replaced
618:0925b27e8750 632:500c3f70b6c2
35 35
36 set(ORTHANC_STONE_APPLICATION_RESOURCES 36 set(ORTHANC_STONE_APPLICATION_RESOURCES
37 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf 37 UBUNTU_FONT ${CMAKE_BINARY_DIR}/ubuntu-font-family-0.83/Ubuntu-R.ttf
38 ) 38 )
39 39
40 SET(ENABLE_SDL_CONSOLE OFF CACHE BOOL "Enable the use of the MIT-licensed SDL_Console")
40 SET(ENABLE_GOOGLE_TEST OFF) 41 SET(ENABLE_GOOGLE_TEST OFF)
41 SET(ENABLE_LOCALE ON) 42 SET(ENABLE_LOCALE ON)
42 SET(ENABLE_SDL ON) 43 SET(ENABLE_SDL ON)
43 SET(ENABLE_WEB_CLIENT ON) 44 SET(ENABLE_WEB_CLIENT ON)
44 SET(ORTHANC_SANDBOXED OFF) 45 SET(ORTHANC_SANDBOXED OFF)
45 LIST(APPEND ORTHANC_BOOST_COMPONENTS program_options) 46 LIST(APPEND ORTHANC_BOOST_COMPONENTS program_options)
46 47
47 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneConfiguration.cmake) 48 include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneConfiguration.cmake)
48
49 49
50 ##################################################################### 50 #####################################################################
51 ## Build the samples 51 ## Build the samples
52 ##################################################################### 52 #####################################################################
53 53
58 add_executable(BasicScene 58 add_executable(BasicScene
59 BasicScene.cpp 59 BasicScene.cpp
60 ) 60 )
61 61
62 target_link_libraries(BasicScene OrthancStone) 62 target_link_libraries(BasicScene OrthancStone)
63
64 if(ENABLE_SDL_CONSOLE)
65 add_definitions(
66 -DENABLE_SDL_CONSOLE=1
67 )
68 LIST(APPEND TRACKERSAMPLE_SOURCE "../../../SDL-Console/SDL_Console.c")
69 LIST(APPEND TRACKERSAMPLE_SOURCE "../../../SDL-Console/SDL_Console.h")
70 endif()
71
72 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureCommands.cpp")
73 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureCommands.h")
74 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTools.cpp")
75 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTools.h")
76 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTrackers.cpp")
77 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTrackers.h")
78 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSample.cpp")
79
80 add_executable(TrackerSample
81 ${TRACKERSAMPLE_SOURCE}
82 )
83
84 target_link_libraries(TrackerSample OrthancStone)
85