diff options
Diffstat (limited to 'examples/sensors/grue/import/import.pro')
-rw-r--r-- | examples/sensors/grue/import/import.pro | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro index 3f46103..71e2249 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 |