From fb99520c988f452dad7dc07751d2261f09c4b791 Mon Sep 17 00:00:00 2001 From: JF Date: Sat, 18 Jan 2020 14:50:24 +0100 Subject: Add version (major.minor.patch) in CMake files. Display the version on the display. --- src/Version.h.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/Version.h.in (limited to 'src/Version.h.in') diff --git a/src/Version.h.in b/src/Version.h.in new file mode 100644 index 00000000..c68a03ce --- /dev/null +++ b/src/Version.h.in @@ -0,0 +1,16 @@ +#pragma once + +@VERSION_EDIT_WARNING@ + +namespace Pinetime { + class Version { + public: + static uint32_t Major() {return major;} + static uint32_t Minor() {return minor;} + static uint32_t Patch() {return patch;} + 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@; + }; +} \ No newline at end of file -- cgit v1.2.3-70-g09d2