Mercurial > hg > orthanc-databases
diff Resources/CMake/DatabasesPluginConfiguration.cmake @ 197:a57ca58c538a
CMake option "ORTHANC_SDK_VERSION" can be set to "framework" for developers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 28 Jan 2021 16:54:51 +0100 |
parents | a51ce147dbe0 |
children | 873e37048f96 |
line wrap: on
line diff
--- a/Resources/CMake/DatabasesPluginConfiguration.cmake Wed Jan 27 16:59:58 2021 +0100 +++ b/Resources/CMake/DatabasesPluginConfiguration.cmake Thu Jan 28 16:54:51 2021 +0100 @@ -32,6 +32,13 @@ include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.5.2) elseif (ORTHANC_SDK_VERSION STREQUAL "1.5.4") include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.5.4) + elseif (ORTHANC_SDK_VERSION STREQUAL "framework") + set(tmp ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include/) + message(${tmp}) + if (NOT EXISTS ${tmp}/orthanc/OrthancCDatabasePlugin.h) + message(FATAL_ERROR "Your copy of the Orthanc framework doesn't contain the Orthanc plugin SDK") + endif() + include_directories(${tmp}) else() message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") endif()