Skip to content

Commit bb38e39

Browse files
committed
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`.
1 parent cd9ec5a commit bb38e39

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

YUViewApp/YUViewApp.pro

+11
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ contains(QT_ARCH, x86_32|i386) {
5555
macx {
5656
ICON = images/YUView.icns
5757
SVNN = $$system("git describe --tags")
58+
59+
isEmpty(PREFIX) {
60+
PREFIX = /
61+
}
62+
isEmpty(BIINDIR) {
63+
BINDIR = Applications
64+
}
65+
66+
target.path = $$PREFIX/$$BINDIR/
67+
68+
INSTALLS += target
5869
}
5970

6071
linux {

0 commit comments

Comments
 (0)