changeset 263:934c8049a285

added value "framework" for option ORTHANC_SDK_VERSION
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 Aug 2025 16:53:40 +0200
parents c41542e14885
children b3bd2e74af1f 81e546455c16
files CMakeLists.txt
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Aug 08 15:21:57 2025 +0200
+++ b/CMakeLists.txt	Fri Aug 08 16:53:40 2025 +0200
@@ -40,7 +40,7 @@
 
 # Advanced parameters to fine-tune linking against system libraries
 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
-set(ORTHANC_SDK_VERSION "1.12.4" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.11.3\" \"1.12.4\")")
+set(ORTHANC_SDK_VERSION "1.12.4" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.11.3\", \"1.12.4\", or \"framework\")")
 
 # Download and setup the Orthanc framework
 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
@@ -88,6 +88,8 @@
     include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.11.3)
   elseif (ORTHANC_SDK_VERSION STREQUAL "1.12.4")
     include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.12.4)
+  elseif (ORTHANC_SDK_VERSION STREQUAL "framework")
+    include_directories(${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include)
   else()
     message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}")
   endif()