Mercurial > trustbridge
comparison CMakeLists.txt @ 495:7a8f5b85fd9a
Dynamically generate version information from HG
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 25 Apr 2014 10:14:33 +0000 |
parents | 09bb19e5e369 |
children | 4f972b1f4996 |
comparison
equal
deleted
inserted
replaced
494:613fbcb5df0c | 495:7a8f5b85fd9a |
---|---|
19 cmake_policy(SET CMP0020 OLD) | 19 cmake_policy(SET CMP0020 OLD) |
20 endif() | 20 endif() |
21 | 21 |
22 include(CTest) | 22 include(CTest) |
23 include(GenerateCppcheck) | 23 include(GenerateCppcheck) |
24 include(HGVersion) | |
25 | |
26 if(HG_REVISION) | |
27 set(PROJECT_VERSION ${HG_REVISION}) | |
28 else() | |
29 set(PROJECT_VERSION unknown) | |
30 endif() | |
31 | |
32 add_definitions(-DVERSION="${PROJECT_VERSION}") | |
24 | 33 |
25 find_package(PolarSSL) | 34 find_package(PolarSSL) |
26 include_directories(${POLARSSL_INCLUDE_DIR}) | 35 include_directories(${POLARSSL_INCLUDE_DIR}) |
27 | 36 |
28 find_package(Qt5Widgets) | 37 find_package(Qt5Widgets) |
100 add_subdirectory(common) | 109 add_subdirectory(common) |
101 | 110 |
102 # Documentation | 111 # Documentation |
103 configure_file (doc/Doxyfile.in doc/Doxyfile) | 112 configure_file (doc/Doxyfile.in doc/Doxyfile) |
104 add_subdirectory(doc) | 113 add_subdirectory(doc) |
114 | |
115 # Configure packaging script for testing | |
116 configure_file (packaging/tmp-createpackage.sh.in packaging/tmp-createpackage.sh) |