Skip to content

Commit

Permalink
qmake/app: Add install target for MacOS
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
frankplow committed Nov 5, 2024
1 parent cd9ec5a commit bb38e39
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions YUViewApp/YUViewApp.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bb38e39

Please sign in to comment.