Mercurial > hg > orthanc-wsi
changeset 432:14daf4d0eb96
added CMake option "ORTHANC_SDK_VERSION"
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Thu, 30 Jul 2026 13:39:55 +0200 |
| parents | e634b2dcaf0b |
| children | d80c65d8b815 70c93cedf4f1 |
| files | NEWS ViewerPlugin/CMakeLists.txt |
| diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Fri May 08 17:58:20 2026 +0200 +++ b/NEWS Thu Jul 30 13:39:55 2026 +0200 @@ -4,6 +4,8 @@ * OrthancWSIDicomizer: - Now adding a FrameOfReferenceUID DICOM tag. This is required, amongst others, by the measurement tools in the OHIF microscopy viewer. +* Viewer plugin: + - Added CMake option "ORTHANC_SDK_VERSION" Version 3.3 (2025-11-06)
--- a/ViewerPlugin/CMakeLists.txt Fri May 08 17:58:20 2026 +0200 +++ b/ViewerPlugin/CMakeLists.txt Thu Jul 30 13:39:55 2026 +0200 @@ -37,6 +37,7 @@ # Advanced parameters to fine-tune linking against system libraries SET(USE_SYSTEM_OPENJPEG ON CACHE BOOL "Use the system version of OpenJpeg") SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") +set(ORTHANC_SDK_VERSION "1.7.0" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"framework\" or \"1.7.0\")") ##################################################################### @@ -96,7 +97,13 @@ ##################################################################### if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) - include_directories(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/Sdk-1.7.0) + if (ORTHANC_SDK_VERSION STREQUAL "1.7.0") + include_directories(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/Sdk-1.7.0) + 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() else () CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) if (NOT HAVE_ORTHANC_H)
