From d8c771ec9d00df34efc42c41747d5d41678d3b78 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 30 Jan 2019 14:20:28 +0100 Subject: Specify rpath during linking to find qtmips_machine library without install. Signed-off-by: Pavel Pisa --- qtmips_gui/qtmips_gui.pro | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qtmips_gui') diff --git a/qtmips_gui/qtmips_gui.pro b/qtmips_gui/qtmips_gui.pro index e7736f9..c941fa5 100644 --- a/qtmips_gui/qtmips_gui.pro +++ b/qtmips_gui/qtmips_gui.pro @@ -6,6 +6,13 @@ CONFIG += c++11 TEMPLATE = app LIBS += -L$$OUT_PWD/../qtmips_machine/ -lqtmips_machine + +DOLAR=$ + +unix: LIBS += \ + -Wl,-rpath,\'$${DOLAR}$${DOLAR}ORIGIN/../lib\' \ + --enable-new-dtags \ + INCLUDEPATH += $$PWD/../qtmips_machine DEPENDPATH += $$PWD/../qtmips_machine QMAKE_CXXFLAGS += -std=c++0x -- cgit v1.2.3