From bb38e39dbf67288928d29f7054e6ffb1d75043de Mon Sep 17 00:00:00 2001 From: Frank Plowman Date: Tue, 5 Nov 2024 11:03:37 +0000 Subject: [PATCH] qmake/app: Add install target for MacOS This patch adds an install target for MacOS, so one can run `make install` after building on MacOS to copy the built package into `/Applications`, or `$$PREFIX/Applications`. --- YUViewApp/YUViewApp.pro | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/YUViewApp/YUViewApp.pro b/YUViewApp/YUViewApp.pro index a53c41221..29b37ec2b 100644 --- a/YUViewApp/YUViewApp.pro +++ b/YUViewApp/YUViewApp.pro @@ -55,6 +55,17 @@ contains(QT_ARCH, x86_32|i386) { macx { ICON = images/YUView.icns SVNN = $$system("git describe --tags") + + isEmpty(PREFIX) { + PREFIX = / + } + isEmpty(BIINDIR) { + BINDIR = Applications + } + + target.path = $$PREFIX/$$BINDIR/ + + INSTALLS += target } linux {