summaryrefslogtreecommitdiff
path: root/cmake/git_version.hpp.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/git_version.hpp.in')
-rw-r--r--cmake/git_version.hpp.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/git_version.hpp.in b/cmake/git_version.hpp.in
new file mode 100644
index 0000000..ede9623
--- /dev/null
+++ b/cmake/git_version.hpp.in
@@ -0,0 +1,15 @@
+#ifndef GIT_VERSION_HPP
+#define GIT_VERSION_HPP
+
+#include <cstdint>
+
+namespace fud {
+
+constexpr uint8_t FudVersionMajor = @PROJECT_VERSION_MAJOR@;
+constexpr uint8_t FudVersionMinor = @PROJECT_VERSION_MINOR@;
+constexpr uint8_t FudVersionPatch = @PROJECT_VERSION_PATCH@;
+constexpr const char GitHash[] = "@GIT_HASH@";
+
+} // namespace fud
+
+#endif