moved application info to project file

This commit is contained in:
Martchus 2015-07-27 23:32:04 +02:00
parent 7542afd1c4
commit d6ebdadff0
2 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,12 @@ CONFIG(debug, debug|release) {
} else {
TARGET = $${targetprefix}$${projectname}
}
# add defines
DEFINES += "'PROJECT_NAME=\"$${projectname}\"'"
DEFINES += "'APP_NAME=\"$${appname}\"'"
DEFINES += "'APP_AUTHOR=\"$${appauthor}\"'"
DEFINES += "'APP_URL=\"$${appurl}\"'"
DEFINES += "'APP_VERSION=\"$${VERSION}\"'"
# variables to check target architecture
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
win32-g++-32:QMAKE_TARGET.arch = x86

View File

@ -1,4 +1,7 @@
projectname = geocoordinatecalculator
appname = "Geo coordinate calculator"
appauthor = Martchus
appurl = "https://github.com/$${appauthor}/$${projectname}"
VERSION = 1.0.0
CONFIG += no-gui