diff options
Diffstat (limited to 'examples/sensors/grue/import')
-rw-r--r-- | examples/sensors/grue/import/import.pro | 6 | ||||
-rw-r--r-- | examples/sensors/grue/import/qmldir | 1 |
2 files changed, 6 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 diff --git a/examples/sensors/grue/import/qmldir b/examples/sensors/grue/import/qmldir index 266b7c11..529b9093 100644 --- a/examples/sensors/grue/import/qmldir +++ b/examples/sensors/grue/import/qmldir @@ -1 +1,2 @@ +module Grue plugin declarative_grue |