Generate a header containing git version info

It contains the last annotated tag, and possibly also the number of
commits since then and the hash of the last commit.
This commit is contained in:
Robbert van der Helm
2020-04-25 16:12:04 +02:00
parent 1622c39f48
commit 4a1133146a
3 changed files with 36 additions and 0 deletions
+4
View File
@@ -27,6 +27,10 @@ endif
# about the way these two components work together can be found in the readme
# file.
# Generate header files for configuration variables such as the current git tag
# and the last commit hash
subdir('src/common/config')
boost_dep = dependency('boost', modules : ['filesystem'])
bitsery_dep = subproject('bitsery').get_variable('bitsery_dep')
threads_dep = dependency('threads')