comparison CMakeLists.txt @ 68:45da32410346

USE_SYSTEM_ORTHANC_SDK option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Aug 2015 21:20:42 +0200
parents 902dedf9882a
children f869ea124433
comparison
equal deleted inserted replaced
60:902dedf9882a 68:45da32410346
34 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 34 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
35 set(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg") 35 set(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg")
36 set(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng") 36 set(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng")
37 set(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of zlib") 37 set(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of zlib")
38 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") 38 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite")
39 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
39 40
40 # Distribution-specific settings 41 # Distribution-specific settings
41 set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") 42 set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
42 mark_as_advanced(USE_GTEST_DEBIAN_SOURCE_PACKAGE) 43 mark_as_advanced(USE_GTEST_DEBIAN_SOURCE_PACKAGE)
43 44
61 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibJpegConfiguration.cmake) 62 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibJpegConfiguration.cmake)
62 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) 63 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake)
63 64
64 65
65 # Check that the Orthanc SDK headers are available or download them 66 # Check that the Orthanc SDK headers are available or download them
66 if (STATIC_BUILD) 67 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK)
67 include_directories(${ORTHANC_ROOT}/Sdk-0.9.1) 68 include_directories(${ORTHANC_ROOT}/Sdk-0.9.1)
68 else () 69 else ()
69 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) 70 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H)
70 if (NOT HAVE_ORTHANC_H) 71 if (NOT HAVE_ORTHANC_H)
71 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") 72 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK")