"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:
32
fuel.pro
32
fuel.pro
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user