From 883c2e1c2acb10407a6a4951e387e700b6e4fdf4 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 8 Sep 2021 14:26:54 +0200 Subject: [PATCH] Use pkgconfig to find zigbee also for tests --- server/server.pro | 3 +++ tests/auto/autotests.pri | 2 ++ tests/testlib/testlib.pro | 3 +++ 3 files changed, 8 insertions(+) diff --git a/server/server.pro b/server/server.pro index 123ec738..a4b21100 100644 --- a/server/server.pro +++ b/server/server.pro @@ -14,6 +14,9 @@ LIBS += -L$$top_builddir/libnymea/ -lnymea \ -L$$top_builddir/libnymea-core -lnymea-core \ -lnymea-remoteproxyclient +CONFIG += link_pkgconfig +PKGCONFIG += nymea-zigbee + # Server files include(qtservice/qtservice.pri) diff --git a/tests/auto/autotests.pri b/tests/auto/autotests.pri index 5d2153e6..a4c3ec5b 100644 --- a/tests/auto/autotests.pri +++ b/tests/auto/autotests.pri @@ -14,6 +14,8 @@ packagesExist(Qt5SerialBus) { message("Qt5SerialBus package not found. Building without QtSerialBus support.") } +PKGCONFIG += nymea-zigbee + INCLUDEPATH += $$top_srcdir/libnymea \ $$top_srcdir/libnymea-core \ $$top_srcdir/tests/testlib/ \ diff --git a/tests/testlib/testlib.pro b/tests/testlib/testlib.pro index b1768333..dbcf00b1 100644 --- a/tests/testlib/testlib.pro +++ b/tests/testlib/testlib.pro @@ -5,6 +5,9 @@ include(../../nymea.pri) QT += testlib dbus network sql websockets +CONFIG += link_pkgconfig +PKGCONFIG += nymea-zigbee + # Qt serial bus module is officially available since Qt 5.8 # but not all platforms host the qt serialbus package. # Let's check if the package exists, not the qt version