comparison CMakeLists.txt @ 408:5a3a4a25e568 lua-scripting

reintegration from mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2013 16:51:40 +0200
parents 2d269089078f
children 1188cb0ddaa5
comparison
equal deleted inserted replaced
397:941ea46e9e26 408:5a3a4a25e568
2 2
3 project(Orthanc) 3 project(Orthanc)
4 4
5 # Version of the build, should always be "mainline" except in release branches 5 # Version of the build, should always be "mainline" except in release branches
6 add_definitions( 6 add_definitions(
7 -DORTHANC_VERSION="0.5.1" 7 -DORTHANC_VERSION="mainline"
8 ) 8 )
9 9
10 # Parameters of the build 10 # Parameters of the build
11 SET(STATIC_BUILD ON CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") 11 SET(STATIC_BUILD ON CACHE BOOL "Static build of the third-party libraries (necessary for Windows)")
12 SET(STANDALONE_BUILD OFF CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") 12 SET(STANDALONE_BUILD OFF CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)")
16 # Advanced parameters (for Debian packaging) 16 # Advanced parameters (for Debian packaging)
17 SET(USE_DYNAMIC_JSONCPP OFF CACHE BOOL "Use the dynamic version of JsonCpp (only for Debian sid)") 17 SET(USE_DYNAMIC_JSONCPP OFF CACHE BOOL "Use the dynamic version of JsonCpp (only for Debian sid)")
18 SET(USE_DYNAMIC_GOOGLE_LOG ON CACHE BOOL "Use the dynamic version of Google Log") 18 SET(USE_DYNAMIC_GOOGLE_LOG ON CACHE BOOL "Use the dynamic version of Google Log")
19 SET(USE_DYNAMIC_GOOGLE_TEST ON CACHE BOOL "Use the dynamic version of Google Test (not for Debian sid)") 19 SET(USE_DYNAMIC_GOOGLE_TEST ON CACHE BOOL "Use the dynamic version of Google Test (not for Debian sid)")
20 SET(USE_DYNAMIC_SQLITE ON CACHE BOOL "Use the dynamic version of SQLite") 20 SET(USE_DYNAMIC_SQLITE ON CACHE BOOL "Use the dynamic version of SQLite")
21 SET(USE_DYNAMIC_MONGOOSE OFF CACHE BOOL "Use the dynamic version of Mongoose")
21 SET(USE_DYNAMIC_LUA OFF CACHE BOOL "Use the dynamic version of Lua") 22 SET(USE_DYNAMIC_LUA OFF CACHE BOOL "Use the dynamic version of Lua")
22 SET(DEBIAN_FORCE_HARDENING OFF CACHE BOOL "Force the injection of Debian hardening flags (unrecommended)") 23 SET(DEBIAN_FORCE_HARDENING OFF CACHE BOOL "Force the injection of Debian hardening flags (unrecommended)")
23 SET(DEBIAN_USE_GTEST_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (only for Debian sid)") 24 SET(DEBIAN_USE_GTEST_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (only for Debian sid)")
24 SET(ONLY_CORE_LIBRARY OFF CACHE BOOL "Only build the core library") 25 SET(ONLY_CORE_LIBRARY OFF CACHE BOOL "Only build the core library")
25 26
32 mark_as_advanced(ONLY_CORE_LIBRARY) 33 mark_as_advanced(ONLY_CORE_LIBRARY)
33 34
34 # Some basic inclusions 35 # Some basic inclusions
35 include(CheckIncludeFiles) 36 include(CheckIncludeFiles)
36 include(CheckIncludeFileCXX) 37 include(CheckIncludeFileCXX)
38 include(CheckLibraryExists)
37 include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake) 39 include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake)
38 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake) 40 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake)
39 include(${CMAKE_SOURCE_DIR}/Resources/CMake/Compiler.cmake) 41 include(${CMAKE_SOURCE_DIR}/Resources/CMake/Compiler.cmake)
40 42
41 # Configuration of the standalone builds 43 # Configuration of the standalone builds