From 37f66636b5cba343d650263e721a2dc0766f2d25 Mon Sep 17 00:00:00 2001 From: "Vetle W. Ingeberg" Date: Sat, 5 Dec 2015 18:19:08 +0100 Subject: [PATCH] Added some linux spesific stuff to Qkinz.pro for it to build propperly for Ubuntu. --- Qkinz.pro | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Qkinz.pro b/Qkinz.pro index 0f24c52..e9f4dd5 100644 --- a/Qkinz.pro +++ b/Qkinz.pro @@ -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 @@ -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.* \ No newline at end of file