comparison CMakeLists.txt @ 23:ec8b0f8df766

removed option "framework" for ORTHANC_SDK_VERSION
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 17:13:16 +0200
parents ebf978ab064d
children 065bc476bcdc
comparison
equal deleted inserted replaced
22:ebf978ab064d 23:ec8b0f8df766
34 34
35 # Parameters of the build 35 # Parameters of the build
36 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") 36 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")")
37 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") 37 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"")
38 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") 38 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"")
39 set(ORTHANC_SDK_VERSION "1.4.2" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.4.2\" or \"framework\")") 39 set(ORTHANC_SDK_VERSION "1.4.2" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.4.2\")")
40 40
41 # Advanced parameters to fine-tune linking against system libraries 41 # Advanced parameters to fine-tune linking against system libraries
42 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") 42 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
43 43
44 44
77 77
78 # Check that the Orthanc SDK headers are available 78 # Check that the Orthanc SDK headers are available
79 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) 79 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK)
80 if (ORTHANC_SDK_VERSION STREQUAL "1.4.2") 80 if (ORTHANC_SDK_VERSION STREQUAL "1.4.2")
81 include_directories(${CMAKE_CURRENT_LIST_DIR}/Resources/Orthanc/Sdk-1.4.2) 81 include_directories(${CMAKE_CURRENT_LIST_DIR}/Resources/Orthanc/Sdk-1.4.2)
82 elseif (ORTHANC_SDK_VERSION STREQUAL "framework")
83 include_directories(${ORTHANC_FRAMEWORK_ROOT}/Plugins/Include)
84 else() 82 else()
85 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") 83 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}")
86 endif() 84 endif()
87 else () 85 else ()
88 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H) 86 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H)