comparison CMakeLists.txt @ 1134:f1384bf9d4a4

Mergerd
author Sascha Wilde <wilde@intevation.de>
date Wed, 17 Sep 2014 15:01:19 +0200
parents 6950f08342bb
children 148014db2f3b 69f7d302cdb9
comparison
equal deleted inserted replaced
1133:54a6fa9e44cf 1134:f1384bf9d4a4
7 7
8 cmake_minimum_required(VERSION 2.8.8) 8 cmake_minimum_required(VERSION 2.8.8)
9 project(trustbridge) 9 project(trustbridge)
10 10
11 option(DO_RELEASE_BUILD "Build for a public release." OFF) 11 option(DO_RELEASE_BUILD "Build for a public release." OFF)
12 option(USE_REAL_RESOURCES "Use real resource names on the download server. Autmatically ON if DO_RELEASE_BUILD is set" OFF )
13 option(ENABLE_PROFILING "Set to enable profiling." OFF) 12 option(ENABLE_PROFILING "Set to enable profiling." OFF)
14 option(USE_CURL "Use libcurl to download updates and certificate lists." ON) 13 option(USE_CURL "Use libcurl to download updates and certificate lists." ON)
15 14
16 set(DOWNLOAD_SERVER "https://tb-devel.intevation.de:443" CACHE STRING "Used as download server" ) 15 set(DOWNLOAD_SERVER "https://tb-devel.intevation.de:443" CACHE STRING "Used as download server" )
17 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") 16 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
25 include(CTest) 24 include(CTest)
26 include(GenerateCppcheck) 25 include(GenerateCppcheck)
27 include(HGVersion) 26 include(HGVersion)
28 27
29 if(HG_REVISION) 28 if(HG_REVISION)
29 If(HG_REVISION_DIST STREQUAL "0")
30 add_definitions(-DIS_TAG_BUILD)
31 endif()
30 set(PROJECT_VERSION ${HG_REVISION}) 32 set(PROJECT_VERSION ${HG_REVISION})
31 else() 33 else()
32 set(PROJECT_VERSION unknown) 34 set(PROJECT_VERSION unknown)
33 endif() 35 endif()
34 36

http://wald.intevation.org/projects/trustbridge/