summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/plugin/plugin.pro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/grue/plugin/plugin.pro')
-rw-r--r--examples/sensors/grue/plugin/plugin.pro8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/sensors/grue/plugin/plugin.pro b/examples/sensors/grue/plugin/plugin.pro
index 03e66851..90453537 100644
--- a/examples/sensors/grue/plugin/plugin.pro
+++ b/examples/sensors/grue/plugin/plugin.pro
@@ -8,12 +8,18 @@ QT = core 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/..
+
HEADERS += gruesensorimpl.h\
SOURCES += gruesensorimpl.cpp\
main.cpp\
-target.path=$$[QT_INSTALL_PLUGINS]/sensors
+
+# Install the plugin under Grue example directory
+target.path=$$[QT_INSTALL_EXAMPLES]/qtsensors/grue/$$PLUGIN_TYPE
INSTALLS += target
OTHER_FILES += \