comparison CMakeLists.txt @ 4:e3128420249d

fixing the SDK version
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Mar 2020 12:22:22 +0100
parents 7ed502b17b8f
children 952e969a2240
comparison
equal deleted inserted replaced
3:26762eb9d704 4:e3128420249d
7 set(PYTHON_VERSION "3.6" CACHE STRING "Version of Python to be used") 7 set(PYTHON_VERSION "3.6" CACHE STRING "Version of Python to be used")
8 set(PYTHON_WINDOWS_ROOT "" CACHE STRING "") 8 set(PYTHON_WINDOWS_ROOT "" CACHE STRING "")
9 set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") 9 set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost")
10 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 10 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
11 set(USE_LEGACY_JSONCPP OFF CACHE BOOL "Use the old branch 0.x.y of JsonCpp, that does not require a C++11 compiler (for LSB and old versions of Visual Studio)") 11 set(USE_LEGACY_JSONCPP OFF CACHE BOOL "Use the old branch 0.x.y of JsonCpp, that does not require a C++11 compiler (for LSB and old versions of Visual Studio)")
12 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
13
14 12
15 include(CheckIncludeFile) 13 include(CheckIncludeFile)
16 include(CheckIncludeFileCXX) 14 include(CheckIncludeFileCXX)
17 include(CheckIncludeFiles) 15 include(CheckIncludeFiles)
18 include(CheckLibraryExists) 16 include(CheckLibraryExists)
39 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) 37 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake)
40 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) 38 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
41 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) 39 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake)
42 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) 40 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake)
43 41
44 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) 42 include_directories(
45 include_directories( 43 ${ORTHANC_ROOT}/Sdk-1.5.7
46 ${ORTHANC_ROOT}/Sdk-1.5.7 44 )
47 )
48 else()
49 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H)
50 if (NOT HAVE_ORTHANC_H)
51 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK")
52 endif()
53 endif()
54 45
55 add_definitions( 46 add_definitions(
56 -DHAS_ORTHANC_EXCEPTION=0 47 -DHAS_ORTHANC_EXCEPTION=0
57 ) 48 )
58 49