comparison Google/CMakeLists.txt @ 129:fe51b4fb5132

fix framework version
author Alain Mazy <am@osimis.io>
date Fri, 24 Nov 2023 17:16:02 +0100
parents dd0068c70937
children 17f350ab12ca
comparison
equal deleted inserted replaced
128:dd0068c70937 129:fe51b4fb5132
19 19
20 project(OrthancGoogleCloudStorage) 20 project(OrthancGoogleCloudStorage)
21 21
22 set(PLUGIN_VERSION "mainline") 22 set(PLUGIN_VERSION "mainline")
23 23
24 if (PLUGIN_VERSION STREQUAL "mainline")
25 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
26 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
27 else()
28 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline") # TODO: update to web - 1.12.2 when available
29 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
30 endif()
31
32 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")")
33 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework")
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\"")
36 set(ALLOW_DOWNLOADS ON)
37
38
24 include(CheckIncludeFileCXX) 39 include(CheckIncludeFileCXX)
25
26 set(ORTHANC_FRAMEWORK_SOURCE "hg" CACHE STRING "orthanc source")
27 set(ORTHANC_FRAMEWORK_VERSION "b83192e7ad10" CACHE STRING "orthanc framework version") # TODO: update to web - 1.12.2 when available
28 set(ALLOW_DOWNLOADS ON)
29 40
30 # Download and setup the Orthanc framework 41 # Download and setup the Orthanc framework
31 42
32 include(${CMAKE_SOURCE_DIR}/../Common/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) 43 include(${CMAKE_SOURCE_DIR}/../Common/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
33 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) 44 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake)