Version number put into a separate file

p4#: 20214
This commit is contained in:
Jacob Støren
2013-01-22 11:28:35 +01:00
parent e74be2283d
commit 24ac7b819e
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
exec_program( svnversion ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE SVN_VERSION)
exec_program( date OUTPUT_VARIABLE COMPILE_TIME_STAMP)
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/build_timestamp.h "#define SVN_VERSION \"${SVN_VERSION}\"\n#define COMPILE_TIME_STAMP \"${COMPILE_TIME_STAMP}\"\n" )