# HG changeset patch # User Sebastien Jodogne # Date 1754664820 -7200 # Node ID 934c8049a285d03e2690d3ddacbf7c108ec46824 # Parent c41542e14885140bc894b98220c2c4fbab36748b added value "framework" for option ORTHANC_SDK_VERSION diff -r c41542e14885 -r 934c8049a285 CMakeLists.txt --- 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()