Mercurial > hg > orthanc-python
comparison CMakeLists.txt @ 100:e2b2e1d4e1bb
fixed compatibility with Orthanc SDK 1.8.1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Feb 2022 07:30:33 +0100 |
parents | 465bf098554b |
children | 461dfb859ac7 |
comparison
equal
deleted
inserted
replaced
99:465bf098554b | 100:e2b2e1d4e1bb |
---|---|
31 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 31 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
32 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") | 32 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") |
33 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework") | 33 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework") |
34 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") | 34 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") |
35 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") | 35 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") |
36 set(USE_FRAMEWORK_ORTHANC_SDK OFF CACHE BOOL "Whether to use the SDK from the Orthanc sources (for developers only, to support new features of the SDK that are still pending in the mainline)") | |
36 | 37 |
37 # Advanced parameters to fine-tune linking against system libraries | 38 # Advanced parameters to fine-tune linking against system libraries |
38 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | |
39 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") | 39 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") |
40 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) | 40 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) |
41 | 41 |
42 | 42 |
43 # Download and setup the Orthanc framework | 43 # Download and setup the Orthanc framework |
149 endif() | 149 endif() |
150 endif() | 150 endif() |
151 endif() | 151 endif() |
152 | 152 |
153 | 153 |
154 include_directories( | 154 if (USE_FRAMEWORK_ORTHANC_SDK) |
155 ${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.9.8 | 155 include_directories( |
156 ) | 156 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include |
157 ) | |
158 else() | |
159 include_directories( | |
160 ${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.8.1 | |
161 ) | |
162 endif() | |
157 | 163 |
158 add_definitions( | 164 add_definitions( |
159 -DHAS_ORTHANC_EXCEPTION=0 | 165 -DHAS_ORTHANC_EXCEPTION=0 |
160 ) | 166 ) |
161 | 167 |