diff options
author | Mitch Curtis <[email protected]> | 2025-02-13 11:10:45 +0800 |
---|---|---|
committer | Mitch Curtis <[email protected]> | 2025-03-12 14:07:37 +0800 |
commit | b35ea9b974c965c01cd0a8340a7885621e4413ef (patch) | |
tree | 6dd68c349102eb5b8066cbf7f191d931df4eee85 | |
parent | 523973f16b378956d41a33f4d270e6aa70f025da (diff) |
Make dprgadget manual test directly openable in Creator
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 <[email protected]>
-rw-r--r-- | tests/manual/highdpi/dprgadget/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 |