Mercurial > hg > orthanc-stone
annotate Samples/Sdl/CMakeLists.txt @ 650:200f7e1d57d1
Moved RadiographyDicomLayer::SetDicomFrameConverter to cpp file to prevent
using an auto_ptr with an incomplete type (because of Microsoft implementation?)
because that might lead to the dtor not being called.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 14 May 2019 09:48:01 +0200 |
parents | 1e9ed656318e |
children | 8b6adfb62a2f |
rev | line source |
---|---|
600 | 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 | |
632
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
40 SET(ENABLE_SDL_CONSOLE OFF CACHE BOOL "Enable the use of the MIT-licensed SDL_Console") |
600 | 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 ##################################################################### | |
51 ## Build the samples | |
52 ##################################################################### | |
53 | |
54 add_library(OrthancStone STATIC | |
55 ${ORTHANC_STONE_SOURCES} | |
56 ) | |
57 | |
58 add_executable(BasicScene | |
59 BasicScene.cpp | |
60 ) | |
61 | |
62 target_link_libraries(BasicScene OrthancStone) | |
619
9cd19b28f011
test: refactoring oracle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
616
diff
changeset
|
63 |
632
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
64 if(ENABLE_SDL_CONSOLE) |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
65 add_definitions( |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
66 -DENABLE_SDL_CONSOLE=1 |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
67 ) |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
68 LIST(APPEND TRACKERSAMPLE_SOURCE "../../../SDL-Console/SDL_Console.c") |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
69 LIST(APPEND TRACKERSAMPLE_SOURCE "../../../SDL-Console/SDL_Console.h") |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
70 endif() |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
71 |
645
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
72 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/AngleMeasureTool.cpp") |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
73 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/AngleMeasureTool.h") |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
74 |
644 | 75 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateAngleMeasureTracker.cpp") |
76 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateAngleMeasureTracker.h") | |
77 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateCircleMeasureTracker.cpp") | |
78 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateCircleMeasureTracker.h") | |
79 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateLineMeasureTracker.cpp") | |
80 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateLineMeasureTracker.h") | |
81 | |
82 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateMeasureTracker.cpp") | |
83 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateMeasureTracker.h") | |
84 | |
85 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/CreateSimpleTrackerAdapter.cpp") | |
86 | |
87 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/EditAngleMeasureTracker.cpp") | |
88 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/EditAngleMeasureTracker.h") | |
89 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/EditCircleMeasureTracker.cpp") | |
90 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/EditCircleMeasureTracker.h") | |
91 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/EditLineMeasureTracker.cpp") | |
92 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/EditLineMeasureTracker.h") | |
93 | |
94 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/IFlexiblePointerTracker.h") | |
95 | |
645
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
96 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/LineMeasureTool.cpp") |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
97 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/LineMeasureTool.h") |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
98 |
632
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
99 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureCommands.cpp") |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
100 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureCommands.h") |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
101 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTools.cpp") |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
102 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTools.h") |
645
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
103 |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
104 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureToolsToolbox.cpp") |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
105 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureToolsToolbox.h") |
1e9ed656318e
Merge + ongoing measure work
Benjamin Golinvaux <bgo@osimis.io>
parents:
644
diff
changeset
|
106 |
632
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
107 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTrackers.cpp") |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
108 LIST(APPEND TRACKERSAMPLE_SOURCE "../Common/MeasureTrackers.h") |
644 | 109 |
632
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
110 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSample.cpp") |
644 | 111 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSampleApp.cpp") |
112 LIST(APPEND TRACKERSAMPLE_SOURCE "TrackerSampleApp.h") | |
113 | |
114 if (MSVC AND MSVC_VERSION GREATER 1700) | |
115 LIST(APPEND TRACKERSAMPLE_SOURCE "cpp.hint") | |
116 endif() | |
632
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
117 |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
118 add_executable(TrackerSample |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
119 ${TRACKERSAMPLE_SOURCE} |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
120 ) |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
121 |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
122 target_link_libraries(TrackerSample OrthancStone) |
500c3f70b6c2
- Added a ClearAllChains method to PolylineSceneLayer --> revision must change
Benjamin Golinvaux <bgo@osimis.io>
parents:
616
diff
changeset
|
123 |
619
9cd19b28f011
test: refactoring oracle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
616
diff
changeset
|
124 add_executable(Loader |
9cd19b28f011
test: refactoring oracle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
616
diff
changeset
|
125 Loader.cpp |
9cd19b28f011
test: refactoring oracle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
616
diff
changeset
|
126 ) |
9cd19b28f011
test: refactoring oracle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
616
diff
changeset
|
127 |
9cd19b28f011
test: refactoring oracle
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
616
diff
changeset
|
128 target_link_libraries(Loader OrthancStone) |