Skip to content

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpostor committed Aug 19, 2021
1 parent f38aef0 commit 7ff32ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <QQuickStyle>
#include <QQmlContext>

#include "version.h"
#include "models/playermodel.h"
#include "game.h"
#include "utility"
Expand Down Expand Up @@ -48,6 +49,9 @@ int main(int argc, char *argv[]) {

qRegisterMetaType<Client::JoinStatus>("JoinStatus");

QCoreApplication::setApplicationName("Quickcurver");
QCoreApplication::setApplicationVersion(VERSION);

QCommandLineParser parser;
parser.setApplicationDescription("Quickcurver");
parser.addHelpOption();
Expand Down
1 change: 1 addition & 0 deletions src/version.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "version.h"
6 changes: 6 additions & 0 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef VERSION_H
#define VERSION_H

#define VERSION "0.1"

#endif // VERSION_H

0 comments on commit 7ff32ca

Please sign in to comment.