From 4d7afcb227992d8fb7f93e65aee21acf266cd179 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Sat, 3 Jan 2015 08:32:54 -0500 Subject: Add support for the LIBPREFIX qmake variable for all the project files. This allows a user to run qmake LIBPREFIX="something" PREFIX="something" to ensure that libraries are found in the proper location. --- lumina-config/lumina-config.pro | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lumina-config/lumina-config.pro') diff --git a/lumina-config/lumina-config.pro b/lumina-config/lumina-config.pro index 821daf05..ba2e96cf 100644 --- a/lumina-config/lumina-config.pro +++ b/lumina-config/lumina-config.pro @@ -8,6 +8,10 @@ isEmpty(PREFIX) { } target.path = $$PREFIX/bin +isEmpty(LIBPREFIX) { + LIBPREFIX = $$PREFIX/lib +} + TEMPLATE = app SOURCES += main.cpp \ @@ -34,13 +38,9 @@ FORMS += mainUI.ui \ INCLUDEPATH += ../libLumina $$PREFIX/include -LIBS += -L../libLumina -L$$PREFIX/lib -lLuminaUtils +LIBS += -L../libLumina -L$$LIBPREFIX -lLuminaUtils -openbsd-g++4 { - LRELEASE = lrelease4 -} else { - LRELEASE = $$PREFIX/lib/qt5/bin/lrelease -} +LRELEASE = $$LIBPREFIX/qt5/bin/lrelease QMAKE_LIBDIR = ../libLumina DEPENDPATH += ../libLumina -- cgit