CMake: Build dbus tools when building dbus tests

This adds the build dependencies
tst_qdbuscpp2xml -> qdbuscpp2xml
tst_qdbusxml2cpp -> qdbusxml2cpp

Fixes: QTBUG-126115
Change-Id: I8a52568023743924fac67ce88ea446189b0328c0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 0f71a00357234b3cbd30b3d010ae8b10c5a25fec)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Joerg Bornemann 2024-06-06 09:10:14 +02:00 committed by Qt Cherry-pick Bot
parent 9eb670d8d7
commit 3e320e45bf
2 changed files with 3 additions and 0 deletions

View File

@ -33,3 +33,4 @@ qt_internal_add_resource(tst_qdbuscpp2xml "qdbuscpp2xml"
${qdbuscpp2xml_resource_files} ${qdbuscpp2xml_resource_files}
) )
add_dependencies(tst_qdbuscpp2xml ${QT_CMAKE_EXPORT_NAMESPACE}::qdbuscpp2xml)

View File

@ -15,3 +15,5 @@ qt_internal_add_test(tst_qdbusxml2cpp
SOURCES SOURCES
tst_qdbusxml2cpp.cpp tst_qdbusxml2cpp.cpp
) )
add_dependencies(tst_qdbusxml2cpp ${QT_CMAKE_EXPORT_NAMESPACE}::qdbusxml2cpp)