From 9cd257f6c2285b82d9cce8c2b7c1a259f6a431e3 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 26 May 2017 14:06:43 +0200 Subject: Fix grue sensor example building on macOS Task-number: QTBUG-33875 Change-Id: Idd72b689aaae727df77daecb616d5c47b9bb809c Reviewed-by: Lorn Potter --- examples/sensors/grue/import/import.pro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/sensors/grue/import/import.pro') diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro index ab4d177..17d7713 100644 --- a/examples/sensors/grue/import/import.pro +++ b/examples/sensors/grue/import/import.pro @@ -2,16 +2,18 @@ TEMPLATE = lib CONFIG += plugin TARGET = $$qtLibraryTarget(declarative_grue) -DESTDIR = ../Grue + +macos: DESTDIR = ../grue_app.app/Contents/MacOS/Grue +else: DESTDIR = ../Grue QT = core gui qml sensors -INCLUDEPATH += $$PWD/../lib -LIBS += -L$$OUT_PWD/.. -lgruesensor +include(../lib/lib.pri) # 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/.. +macos: QMAKE_RPATHDIR += @loader_path/../../Frameworks SOURCES = main.cpp -- cgit v1.2.1