From d7003dc734ec3d4072afa59e6fc9bad8d72eb095 Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Wed, 24 Oct 2018 13:45:58 +0000 Subject: [PATCH] Add support for BINDIR environmental variable cross-compile environments usually puts binary in a specified directory, e.g. /usr/x86_64/bin, while installing other files in a shared directory, like /usr/share. Therefore supporting BINDIR is required. --- spectral.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spectral.pro b/spectral.pro index 0536a8f..fd17556 100644 --- a/spectral.pro +++ b/spectral.pro @@ -59,7 +59,11 @@ 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 +unix:!mac:isEmpty(BINDIR) { + message("Install BINDIR not set; using /usr/local. You can change this with 'qmake BINDIR=...'") + BINDIR = $$PREFIX/bin +} +unix:target.path = $$BINDIR win32:target.path = $$PREFIX !isEmpty(target.path): INSTALLS += target