Mercurial > hg > orthanc-stone
comparison Resources/CMake/OrthancStoneParameters.cmake @ 1509:b7210c688ca7
linking SDL samples against system-wide orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 09:14:35 +0200 |
parents | dd1d1cc0575d |
children | 1005c1cbe4dd |
comparison
equal
deleted
inserted
replaced
1508:dd1d1cc0575d | 1509:b7210c688ca7 |
---|---|
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 |
19 | 19 |
20 | 20 |
21 ##################################################################### | 21 ##################################################################### |
22 ## Select the location of the Orthanc framework | |
23 ##################################################################### | |
24 | |
25 include(${CMAKE_CURRENT_LIST_DIR}/Version.cmake) | |
26 | |
27 if (ORTHANC_STONE_VERSION STREQUAL "mainline") | |
28 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline") | |
29 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") | |
30 else() | |
31 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.7.2") | |
32 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | |
33 endif() | |
34 | |
35 # Parameters of the build | |
36 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | |
37 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | |
38 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") | |
39 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework") | |
40 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") | |
41 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") | |
42 | |
43 # Advanced parameters to fine-tune linking against system libraries | |
44 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") | |
45 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) | |
46 | |
47 | |
48 | |
49 ##################################################################### | |
22 ## Import the parameters of the Orthanc Framework | 50 ## Import the parameters of the Orthanc Framework |
23 ##################################################################### | 51 ##################################################################### |
24 | 52 |
25 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/DownloadOrthancFramework.cmake) | 53 if (NOT ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
26 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) | 54 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/DownloadOrthancFramework.cmake) |
27 | 55 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) |
28 set(ENABLE_DCMTK OFF) | 56 |
29 set(ENABLE_GOOGLE_TEST ON) | 57 set(ENABLE_DCMTK OFF) |
30 set(ENABLE_JPEG ON) | 58 set(ENABLE_GOOGLE_TEST ON) |
31 set(ENABLE_OPENSSL_ENGINES ON) | 59 set(ENABLE_JPEG ON) |
32 set(ENABLE_PNG ON) | 60 set(ENABLE_OPENSSL_ENGINES ON) |
33 set(ENABLE_SQLITE OFF) | 61 set(ENABLE_PNG ON) |
34 set(ENABLE_ZLIB ON) | 62 set(ENABLE_SQLITE OFF) |
63 set(ENABLE_ZLIB ON) | |
64 endif() | |
65 | |
35 | 66 |
36 | 67 |
37 ##################################################################### | 68 ##################################################################### |
38 ## CMake parameters tunable by the user | 69 ## CMake parameters tunable by the user |
39 ##################################################################### | 70 ##################################################################### |
44 set(USE_SYSTEM_GLEW ON CACHE BOOL "Use the system version of glew (for Windows only)") | 75 set(USE_SYSTEM_GLEW ON CACHE BOOL "Use the system version of glew (for Windows only)") |
45 set(USE_SYSTEM_PIXMAN ON CACHE BOOL "Use the system version of Pixman") | 76 set(USE_SYSTEM_PIXMAN ON CACHE BOOL "Use the system version of Pixman") |
46 set(USE_SYSTEM_SDL ON CACHE BOOL "Use the system version of SDL2") | 77 set(USE_SYSTEM_SDL ON CACHE BOOL "Use the system version of SDL2") |
47 | 78 |
48 | 79 |
80 | |
49 ##################################################################### | 81 ##################################################################### |
50 ## Internal CMake parameters to enable the optional subcomponents of | 82 ## Internal CMake parameters to enable the optional subcomponents of |
51 ## the Stone of Orthanc | 83 ## the Stone of Orthanc |
52 ##################################################################### | 84 ##################################################################### |
53 | 85 |