# HG changeset patch # User Sebastien Jodogne # Date 1785411810 -7200 # Node ID 485e749cc2f0ded9ccc3a69d7dff8d389f15ffb2 # Parent e566ebeae42698066632b0efde33fd11a99cb515 added CMake option "ORTHANC_SDK_VERSION" diff -r e566ebeae426 -r 485e749cc2f0 CMakeLists.txt --- a/CMakeLists.txt Thu Jul 30 13:21:46 2026 +0200 +++ b/CMakeLists.txt Thu Jul 30 13:43:30 2026 +0200 @@ -47,6 +47,8 @@ # 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.9" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"framework\" or \"1.12.9\")") + set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) @@ -114,10 +116,12 @@ # Check that the Orthanc SDK headers are available if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) - if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "path") - include_directories(${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include) + if (ORTHANC_SDK_VERSION STREQUAL "1.12.9") + include_directories(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/Sdk-1.12.9) + elseif (ORTHANC_SDK_VERSION STREQUAL "framework") + include_directories(${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include/) else() - include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.12.9) + message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") endif() else () CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) diff -r e566ebeae426 -r 485e749cc2f0 NEWS --- a/NEWS Thu Jul 30 13:21:46 2026 +0200 +++ b/NEWS Thu Jul 30 13:43:30 2026 +0200 @@ -9,6 +9,7 @@ during LTI configuration. * REST API: Job ID is reported when starting the DICOM-ization, and upload ID is part of the DICOM-ization status +* Added CMake option "ORTHANC_SDK_VERSION" Version 1.1 (2025-11-07)