"make install" works in unix

"make install" now installs icon and ".desktop" file
Initial Arch-Linux pkgbuild support


FossilOrigin-Name: 1b4bb884b1f1c64c3ab7b415fdface636434b6ac
This commit is contained in:
kostas
2012-05-14 23:05:45 +00:00
parent 15c28866fc
commit 47c290b08d
6 changed files with 76 additions and 14 deletions

View File

@ -7,11 +7,32 @@ QT += core gui
TARGET = Fuel
TEMPLATE = app
# OSX Icon
ICON = rsrc/icons/fuel.icns
win32 {
RC_FILE = rsrc/fuel.rc
LIBS += -luser32 -lshell32
}
macx {
ICON = rsrc/icons/fuel.icns
}
unix:!macx {
TARGET = fuel
ICON = rsrc/icons/fuel.png
PREFIX = /usr
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
target.path = $$BINDIR
desktop.path = $$DATADIR/applications
desktop.files += rsrc/fuel.desktop
icon.path = $$DATADIR/icons/hicolor/256x256/apps
icon.files += rsrc/icons/fuel.png
INSTALLS += target desktop icon
}
# Win Icon
RC_FILE = rsrc/fuel.rc
INCLUDEPATH += src
@ -43,6 +64,3 @@ FORMS += ui/MainWindow.ui \
RESOURCES += \
rsrc/resources.qrc
win32 {
LIBS += -luser32 -lshell32
}