Fix qdbusmarshall test

Fix target name for qdbushmarshall and fix missing include paths and
unresolved symbols.

Change-Id: I770e190e33d1de9b9d95ee92e63d868e2337c322
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Leander Beernaert 2019-07-17 14:20:38 +02:00
parent ec1546afc4
commit 1035374040

View File

@ -4,7 +4,7 @@
## ../tst_qdbusmarshall Test:
#####################################################################
add_qt_test(../tst_qdbusmarshall
add_qt_test(tst_qdbusmarshall
SOURCES
../tst_qdbusmarshall.cpp
LIBRARIES
@ -15,12 +15,21 @@ add_qt_test(../tst_qdbusmarshall
## Scopes:
#####################################################################
extend_target(../tst_qdbusmarshall CONDITION QT_FEATURE_dbus_linked
extend_target(tst_qdbusmarshall CONDITION QT_FEATURE_dbus_linked
DEFINES
QT_LINKED_LIBDBUS
)
extend_target(../tst_qdbusmarshall CONDITION NOT QT_FEATURE_dbus_linked
# special case begin
# This test case interacts with dbus code directly via the private
# headers. The include path is also not exposed via Qt:DBus.
extend_target(tst_qdbusmarshall CONDITION QT_FEATURE_dbus_linked
LIBRARIES
dbus-1
)
# special case end
extend_target(tst_qdbusmarshall CONDITION NOT QT_FEATURE_dbus_linked
SOURCES
../../../../../src/dbus/qdbus_symbols.cpp
)