From 520b4d3ca6dca055e345934a365a5d9196abf164 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 26 Jun 2023 14:42:40 +0300 Subject: [PATCH] CMake: make tst_qlogging depend on qlogging_helper So that building tst_qlogging also builds qlogging_helper. Helps with local testing where you only build and run tst_qlogging instead of the whole repo. Change-Id: Ib36ff3e55e04794534d6cb7a23f243aae61d0005 Reviewed-by: Thiago Macieira --- tests/auto/corelib/global/qlogging/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/corelib/global/qlogging/CMakeLists.txt b/tests/auto/corelib/global/qlogging/CMakeLists.txt index bfbf62dccd..c540977464 100644 --- a/tests/auto/corelib/global/qlogging/CMakeLists.txt +++ b/tests/auto/corelib/global/qlogging/CMakeLists.txt @@ -20,6 +20,8 @@ qt_internal_add_test(tst_qlogging SOURCES tst_qlogging.cpp HELPER_BINARY="${CMAKE_CURRENT_BINARY_DIR}/qlogging_helper" ) +add_dependencies(tst_qlogging qlogging_helper) + qt_internal_add_test(tst_qmessagelogger SOURCES tst_qmessagelogger.cpp DEFINES QT_MESSAGELOGCONTEXT