From 57678cca8459036201fde532058c0cb4fa0f0f25 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 15 Aug 2018 19:00:27 +0800 Subject: [PATCH] Fix for Flathub. --- matrique.pro | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/matrique.pro b/matrique.pro index 7e0a47b..f738ca2 100644 --- a/matrique.pro +++ b/matrique.pro @@ -3,6 +3,8 @@ CONFIG += c++14 CONFIG += object_parallel_to_source CONFIG += qtquickcompiler +TARGET = matrique + include(include/libqmatrixclient/libqmatrixclient.pri) include(include/SortFilterProxyModel/SortFilterProxyModel.pri) @@ -35,8 +37,12 @@ QML_IMPORT_PATH = QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. -qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /opt/$${TARGET}/bin +unix:!mac:isEmpty(PREFIX) { + message("Install PREFIX not set; using /usr/local. You can change this with 'qmake PREFIX=...'") + PREFIX = /usr/local +} +unix:target.path = $$PREFIX/bin +win32:target.path = $$PREFIX !isEmpty(target.path): INSTALLS += target DISTFILES += \