summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/import/import.pro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/grue/import/import.pro')
-rw-r--r--examples/sensors/grue/import/import.pro6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro
index 3f46103f..71e2249d 100644
--- a/examples/sensors/grue/import/import.pro
+++ b/examples/sensors/grue/import/import.pro
@@ -9,9 +9,13 @@ QT = core gui qml sensors
INCLUDEPATH += $$PWD/../lib
LIBS += -L$$OUT_PWD/../lib -lgruesensor
+# Shared gruesensor library will be installed in parent directory.
+# Define rpath so that this plugin will know where to look for it.
+unix:!mac: QMAKE_LFLAGS += -Wl,-rpath,\\\$\$ORIGIN/..
+
SOURCES = main.cpp
-DESTPATH=$$[QT_INSTALL_IMPORTS]/Grue
+DESTPATH=$$[QT_INSTALL_EXAMPLES]/qtsensors/grue/Grue
target.path=$$DESTPATH
INSTALLS += target