summaryrefslogtreecommitdiffstats
path: root/src/core/version.cc.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/version.cc.in')
-rw-r--r--src/core/version.cc.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/version.cc.in b/src/core/version.cc.in
new file mode 100644
index 0000000..5424a73
--- /dev/null
+++ b/src/core/version.cc.in
@@ -0,0 +1,15 @@
+#include "core/pch.hh"
+
+#include "core/version.hh"
+
+// clang-format off
+const unsigned short version::major = ${PROJECT_VERSION_MAJOR};
+const unsigned short version::minor = ${PROJECT_VERSION_MINOR};
+const unsigned short version::patch = ${PROJECT_VERSION_PATCH};
+// clang-format on
+
+const std::string_view version::commit = "${GIT_COMMIT}";
+const std::string_view version::branch = "${GIT_BRANCH}";
+const std::string_view version::triplet = "${PROJECT_VERSION}";
+
+const std::string_view version::full = "${PROJECT_VERSION}-${GIT_COMMIT}";