diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-01-30 14:20:28 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-01-30 14:20:28 +0100 |
commit | d8c771ec9d00df34efc42c41747d5d41678d3b78 (patch) | |
tree | f776b41a86b0110b78dc93047356489fcb1b814f | |
parent | df1d084b6a8c25ab715915ae1d91753226edfef3 (diff) | |
download | qtmips-d8c771ec9d00df34efc42c41747d5d41678d3b78.tar.gz qtmips-d8c771ec9d00df34efc42c41747d5d41678d3b78.tar.bz2 qtmips-d8c771ec9d00df34efc42c41747d5d41678d3b78.zip |
Specify rpath during linking to find qtmips_machine library without install.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r-- | qtmips_cli/qtmips_cli.pro | 7 | ||||
-rw-r--r-- | qtmips_gui/qtmips_gui.pro | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/qtmips_cli/qtmips_cli.pro b/qtmips_cli/qtmips_cli.pro index fdf4a24..b615991 100644 --- a/qtmips_cli/qtmips_cli.pro +++ b/qtmips_cli/qtmips_cli.pro @@ -8,6 +8,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 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 |