Mercurial > hg > orthanc-transfers
comparison CMakeLists.txt @ 54:5915547fa6f2
upgraded SDK and framework to 1.11.3
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 03 Feb 2023 18:44:53 +0100 |
parents | 5493447a0d28 |
children | e4ee1b80f94a |
comparison
equal
deleted
inserted
replaced
53:6577d529e83a | 54:5915547fa6f2 |
---|---|
22 | 22 |
23 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline") | 23 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline") |
24 set(ORTHANC_FRAMEWORK_VERSION "mainline") | 24 set(ORTHANC_FRAMEWORK_VERSION "mainline") |
25 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") | 25 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") |
26 else() | 26 else() |
27 set(ORTHANC_FRAMEWORK_VERSION "1.9.3") | 27 set(ORTHANC_FRAMEWORK_VERSION "1.11.3") |
28 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | 28 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") |
29 endif() | 29 endif() |
30 | 30 |
31 | 31 |
32 # Parameters of the build | 32 # Parameters of the build |
33 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") | 33 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") |
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(ORTHANC_SDK_VERSION "1.5.0" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.5.0\")") | 36 set(ORTHANC_SDK_VERSION "1.11.3" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.5.0\", \"1.11.3\")") |
37 | 37 |
38 # Advanced parameters to fine-tune linking against system libraries | 38 # Advanced parameters to fine-tune linking against system libraries |
39 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | 39 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") |
40 | 40 |
41 | 41 |
81 | 81 |
82 # Check that the Orthanc SDK headers are available | 82 # Check that the Orthanc SDK headers are available |
83 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) | 83 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) |
84 if (ORTHANC_SDK_VERSION STREQUAL "1.5.0") | 84 if (ORTHANC_SDK_VERSION STREQUAL "1.5.0") |
85 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.5.0) | 85 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.5.0) |
86 elseif (ORTHANC_SDK_VERSION STREQUAL "1.11.3") | |
87 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.11.3) | |
86 else() | 88 else() |
87 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") | 89 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") |
88 endif() | 90 endif() |
89 else () | 91 else () |
90 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H) | 92 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H) |