summaryrefslogtreecommitdiffstats
path: root/src/version.hpp.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/version.hpp.in')
-rw-r--r--src/version.hpp.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/version.hpp.in b/src/version.hpp.in
new file mode 100644
index 0000000..c9ea040
--- /dev/null
+++ b/src/version.hpp.in
@@ -0,0 +1,15 @@
+#ifndef MASTODONPP_VERSION_HPP
+#define MASTODONPP_VERSION_HPP
+
+#include <string_view>
+
+namespace mastodonpp
+{
+
+using std::string_view;
+
+static constexpr string_view version = "@PROJECT_VERSION@";
+
+} // namespace mastodonpp
+
+#endif // MASTODONPP_VERSION_HPP