summaryrefslogtreecommitdiff
path: root/src/Version.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/Version.h.in')
-rw-r--r--src/Version.h.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Version.h.in b/src/Version.h.in
index c68a03ce..dce83c82 100644
--- a/src/Version.h.in
+++ b/src/Version.h.in
@@ -5,12 +5,14 @@
namespace Pinetime {
class Version {
public:
- static uint32_t Major() {return major;}
- static uint32_t Minor() {return minor;}
- static uint32_t Patch() {return patch;}
+ static constexpr uint32_t Major() {return major;}
+ static constexpr uint32_t Minor() {return minor;}
+ static constexpr uint32_t Patch() {return patch;}
+ static constexpr char* VersionString() {return versionString;}
private:
static constexpr uint32_t major = @PROJECT_VERSION_MAJOR@;
static constexpr uint32_t minor = @PROJECT_VERSION_MINOR@;
static constexpr uint32_t patch = @PROJECT_VERSION_PATCH@;
+ static constexpr char* versionString = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@";
};
} \ No newline at end of file