From affa4b43443a980ff2e80441a9e340801ccc8159 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 29 Jan 2017 11:00:59 +0100 Subject: Reading version tag from repo --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 2a28439..d6a6fd0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,7 +27,9 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); app.setApplicationName("smolbote"); - app.setApplicationVersion("0.0.0"); +#ifdef VERSION + app.setApplicationVersion(VERSION); +#endif app.setWindowIcon(QIcon(QLatin1String(":/icon.svg"))); QCommandLineParser parser; -- cgit v1.2.1