From b35ea9b974c965c01cd0a8340a7885621e4413ef Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 13 Feb 2025 11:10:45 +0800 Subject: [PATCH] Make dprgadget manual test directly openable in Creator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids the need to run qt-cmake-standalone-test and then import the test, as described in QTCREATORBUG-25389. Pick-to: 6.9 6.8 6.5 Change-Id: Ie9694569c24dc0c714c2538819e7d9d8ff7e44e4 Reviewed-by: Morten Johan Sørvig --- tests/manual/highdpi/dprgadget/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/manual/highdpi/dprgadget/CMakeLists.txt b/tests/manual/highdpi/dprgadget/CMakeLists.txt index 5cd0d5812e1..48a84b82f24 100644 --- a/tests/manual/highdpi/dprgadget/CMakeLists.txt +++ b/tests/manual/highdpi/dprgadget/CMakeLists.txt @@ -5,6 +5,12 @@ ## dprgadget Binary: ##################################################################### +if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(dprgadget LANGUAGES C CXX ASM) + find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST) +endif() + qt_internal_add_manual_test(dprgadget SOURCES main.cpp