comparison 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
comparison
equal deleted inserted replaced
196:92fd27ccc60f 197:a57ca58c538a
30 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.4.0) 30 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.4.0)
31 elseif (ORTHANC_SDK_VERSION STREQUAL "1.5.2") 31 elseif (ORTHANC_SDK_VERSION STREQUAL "1.5.2")
32 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.5.2) 32 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.5.2)
33 elseif (ORTHANC_SDK_VERSION STREQUAL "1.5.4") 33 elseif (ORTHANC_SDK_VERSION STREQUAL "1.5.4")
34 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.5.4) 34 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-1.5.4)
35 elseif (ORTHANC_SDK_VERSION STREQUAL "framework")
36 set(tmp ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include/)
37 message(${tmp})
38 if (NOT EXISTS ${tmp}/orthanc/OrthancCDatabasePlugin.h)
39 message(FATAL_ERROR "Your copy of the Orthanc framework doesn't contain the Orthanc plugin SDK")
40 endif()
41 include_directories(${tmp})
35 else() 42 else()
36 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") 43 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}")
37 endif() 44 endif()
38 else () 45 else ()
39 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H) 46 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H)