moved application info to project file
This commit is contained in:
parent
7542afd1c4
commit
d6ebdadff0
|
@ -22,6 +22,12 @@ CONFIG(debug, debug|release) {
|
||||||
} else {
|
} else {
|
||||||
TARGET = $${targetprefix}$${projectname}
|
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
|
# variables to check target architecture
|
||||||
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
||||||
win32-g++-32:QMAKE_TARGET.arch = x86
|
win32-g++-32:QMAKE_TARGET.arch = x86
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
projectname = geocoordinatecalculator
|
projectname = geocoordinatecalculator
|
||||||
|
appname = "Geo coordinate calculator"
|
||||||
|
appauthor = Martchus
|
||||||
|
appurl = "https://github.com/$${appauthor}/$${projectname}"
|
||||||
VERSION = 1.0.0
|
VERSION = 1.0.0
|
||||||
|
|
||||||
CONFIG += no-gui
|
CONFIG += no-gui
|
||||||
|
|
Loading…
Reference in New Issue