comparison CMakeLists.txt @ 193:20636b255424

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Apr 2018 11:44:39 +0200
parents 993dd140bd30
children e481ff4a86cc
comparison
equal deleted inserted replaced
192:afaa2e133e7d 193:20636b255424
21 21
22 project(OrthancWebViewer) 22 project(OrthancWebViewer)
23 23
24 set(ORTHANC_WEBVIEWER_VERSION "mainline") 24 set(ORTHANC_WEBVIEWER_VERSION "mainline")
25 25
26 if (ORTHANC_WEBVIEWER_VERSION STREQUAL "mainline")
27 set(ORTHANC_FRAMEWORK_VERSION "mainline")
28 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
29 else()
30 set(ORTHANC_FRAMEWORK_VERSION "1.3.1")
31 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
32 endif()
33
34
26 # Parameters of the build 35 # Parameters of the build
27 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") 36 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)")
28 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") 37 set(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)")
29 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") 38 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages")
39 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")")
40 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"")
41 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"")
30 42
31 # Advanced parameters to fine-tune linking against system libraries 43 # Advanced parameters to fine-tune linking against system libraries
32 set(USE_SYSTEM_GDCM ON CACHE BOOL "Use the system version of Grassroot DICOM (GDCM)") 44 set(USE_SYSTEM_GDCM ON CACHE BOOL "Use the system version of Grassroot DICOM (GDCM)")
33 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") 45 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
34 46
35 # Download the Orthanc framework
36 if (ORTHANC_WEBVIEWER_VERSION STREQUAL "mainline")
37 set(ORTHANC_FRAMEWORK_SOURCE "hg")
38 set(ORTHANC_FRAMEWORK_VERSION "mainline")
39 else()
40 set(ORTHANC_FRAMEWORK_SOURCE "web")
41 set(ORTHANC_FRAMEWORK_VERSION "1.3.1")
42 endif()
43 47
48 # Download and setup the Orthanc framework
44 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/DownloadOrthancFramework.cmake) 49 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/DownloadOrthancFramework.cmake)
45
46
47 # Initialize the Orthanc framework
48 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) 50 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake)
49 51
50 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) 52 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost)
51 set(ENABLE_GOOGLE_TEST ON) 53 set(ENABLE_GOOGLE_TEST ON)
52 set(ENABLE_SQLITE ON) 54 set(ENABLE_SQLITE ON)