summaryrefslogtreecommitdiff
path: root/tools/cmake
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2023-09-03 10:01:56 +0000
committer0scar <qgt268@alumni.ku.dk>2023-09-03 10:04:27 +0000
commitcad0850e219862cc82271534c75c7aaa15303a3a (patch)
tree0df28018f0fe52c393bef8a0f46a7f9027abd1f3 /tools/cmake
parent36689ac93e7442ae3a00b61ef4dc719db1b9b78b (diff)
Add some versioning management
Diffstat (limited to 'tools/cmake')
-rw-r--r--tools/cmake/configure.h.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/cmake/configure.h.in b/tools/cmake/configure.h.in
new file mode 100644
index 0000000..6a186df
--- /dev/null
+++ b/tools/cmake/configure.h.in
@@ -0,0 +1,10 @@
+#cmakedefine GIT_SHA "@GIT_SHA@"
+#cmakedefine COMPILATION_DATE "@COMPILATION_DATE@"
+
+#cmakedefine ENGINE_VERSION_MAJOR @ENGINE_VERSION_MAJOR@
+#cmakedefine ENGINE_VERSION_MINOR @ENGINE_VERSION_MINOR@
+#cmakedefine ENGINE_VERSION_PATCH @ENGINE_VERSION_PATCH@
+#cmakedefine ENGINE_VERSION_TWEAK "@ENGINE_VERSION_TWEAK@"
+
+#cmakedefine ENGINE_VERSION_TWEAK \
+ "@ENGINE_VERSION_MAJOR@.@ENGINE_VERSION_MINOR@.@ENGINE_VERSION_PATCH@-@ENGINE_VERSION_TWEAK@"