Skip to content

Commit

Permalink
Added some linux spesific stuff to Qkinz.pro for it to build propperl…
Browse files Browse the repository at this point in the history
…y for

Ubuntu.
  • Loading branch information
vetlewi committed Dec 5, 2015
1 parent df54ae0 commit 37f6663
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Qkinz.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport webkitwidgets
TARGET = Qkinz
TEMPLATE = app

unix {
BUILDDIR = $$PWD/build
DESTDIR = $$BUILDDIR
OBJECTS_DIR = $$BUILDDIR
MOC_DIR = $$BUILDDIR
RCC_DIR = $$BUILDDIR
UI_DIR = $$BUILDDIR
}

macx {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
QMAKE_CXXFLAGS += -std=c++11 #-O3
Expand Down Expand Up @@ -106,3 +115,22 @@ FORMS += source/gui/forms/mainwindow.ui \
source/gui/forms/selectfrontbackform.ui

RESOURCES += resources/resorces.qrc

unix {
binfile.files += $$BUILDDIR/$$TARGET
binfile.path += /usr/bin/
icon.files += $$PWD/Qkinz.png
icon.path += /usr/share/$$TARGET
desktop.path = /usr/share/applications/
desktop.files = $$PWD/Qkinz.desktop
INSTALLS += binfile
INSTALLS += icon
INSTALLS += desktop
}

QMAKE_CLEAN += $$BUILDDIR/*.o \
$$BUILDDIR/moc_* \
$$BUILDDIR/ui_*

QMAKE_DISTCLEAN += $$PWD/Makefile \
$$PWD/*.pro.*

0 comments on commit 37f6663

Please sign in to comment.