From b50980ad70684530d55b7adf20de6047ebf53ba2 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 3 Oct 2024 09:28:01 -0500 Subject: Use a configure file for versioning including git revision. --- cmake/git_version.hpp.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmake/git_version.hpp.in (limited to 'cmake/git_version.hpp.in') 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 + +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 -- cgit v1.2.3