diff CMakeLists.txt @ 524:a097dd86cb4d

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 29 Apr 2014 15:26:43 +0200
parents 4f972b1f4996
children 5cd525fc91de
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Apr 29 15:26:02 2014 +0200
+++ b/CMakeLists.txt	Tue Apr 29 15:26:43 2014 +0200
@@ -21,6 +21,15 @@
 
 include(CTest)
 include(GenerateCppcheck)
+include(HGVersion)
+
+if(HG_REVISION)
+   set(PROJECT_VERSION ${HG_REVISION})
+else()
+   set(PROJECT_VERSION unknown)
+endif()
+
+add_definitions(-DVERSION="${PROJECT_VERSION}")
 
 find_package(PolarSSL)
 include_directories(${POLARSSL_INCLUDE_DIR})
@@ -102,3 +111,10 @@
 # Documentation
 configure_file (doc/Doxyfile.in doc/Doxyfile)
 add_subdirectory(doc)
+
+# Configure packaging script for testing
+list(GET NSS_LIBRARIES 1 NSS_BASE_DIR)
+get_filename_component(NSS_BASE_DIR ${NSS_BASE_DIR} PATH)
+
+set(NSS_BASE_DIR "${NSS_BASE_DIR}/..")
+configure_file (packaging/tmp-createpackage.sh.in packaging/tmp-createpackage.sh)

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