Mercurial > hg > orthanc-transfers
comparison CMakeLists.txt @ 40:1256194e1c08
sync orthanc + sdk 1.5.0 + added more info in error logs
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 12 Jul 2022 12:43:43 +0200 |
parents | f627882388dc |
children | b4650bef03ac |
comparison
equal
deleted
inserted
replaced
39:f627882388dc | 40:1256194e1c08 |
---|---|
31 | 31 |
32 # Parameters of the build | 32 # Parameters of the build |
33 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") | 33 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")") |
34 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") | 34 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") |
35 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") | 35 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") |
36 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\")") | 36 set(ORTHANC_SDK_VERSION "1.5.0" CACHE STRING "Version of the Orthanc plugin SDK to use, if not using the system version (can be \"1.5.0\")") |
37 | 37 |
38 # Advanced parameters to fine-tune linking against system libraries | 38 # Advanced parameters to fine-tune linking against system libraries |
39 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | 39 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") |
40 | 40 |
41 | 41 |
79 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) | 79 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) |
80 | 80 |
81 | 81 |
82 # Check that the Orthanc SDK headers are available | 82 # Check that the Orthanc SDK headers are available |
83 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) | 83 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) |
84 if (ORTHANC_SDK_VERSION STREQUAL "1.4.2") | 84 if (ORTHANC_SDK_VERSION STREQUAL "1.5.0") |
85 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.4.2) | 85 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-1.5.0) |
86 else() | 86 else() |
87 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") | 87 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}") |
88 endif() | 88 endif() |
89 else () | 89 else () |
90 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H) | 90 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCDatabasePlugin.h HAVE_ORTHANC_H) |