From 4e18e7d377c56d41c1d6f3cf9be37f1af94cd1b1 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Mon, 19 Jul 2021 16:46:54 +1000 Subject: CMake: Add missing dependencies for tst_qmlbasicapp The test executable needs to depend on the QML module and its plugin because there is no direct link at the library level. The dependency exists at the QML level, so we need to tell CMake or else the plugin may not get built and that will result in failures due to not being able to load the QML plugin at run time. Pick-to: 6.2 Change-Id: Iafd1b8c15e3b2c227c7654d6fe39340e686f72a1 Reviewed-by: Fabian Kosmale Reviewed-by: Andrei Golubev --- tests/auto/qml/qmlbasicapp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/auto/qml/qmlbasicapp') diff --git a/tests/auto/qml/qmlbasicapp/CMakeLists.txt b/tests/auto/qml/qmlbasicapp/CMakeLists.txt index c121c089ee..276ef9a0e8 100644 --- a/tests/auto/qml/qmlbasicapp/CMakeLists.txt +++ b/tests/auto/qml/qmlbasicapp/CMakeLists.txt @@ -15,3 +15,4 @@ qt6_add_qml_module(tst_qmlbasicapp ) add_subdirectory(TimeExample) +add_dependencies(tst_qmlbasicapp qmlqtimeexample qmlqtimeexampleplugin) -- cgit v1.2.3