diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-09-07 11:51:08 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-10-31 07:55:45 +0000 |
commit | 04d4f099d6008886f77d2d9f5449811757744dac (patch) | |
tree | 8502ce0557ea2bd84fd80dd322d95d7ab3c88384 | |
parent | c7d9d0539a7e7c4da575c14045245c9b28f16547 (diff) |
tests/benchmarks/quickcontrols2: allow opening projects in Creator
Otherwise it's only possible to build these projects on the command
line with qt-cmake-standalone-test.
Task-number: QTBUG-93020
Change-Id: I84e5bd2b6b3bb7cb8deac22ec417af793ae8c1d6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 04926f4320bbb79816eb7b091d02dcf649befcf1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/benchmarks/quickcontrols2/creationtime/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/benchmarks/quickcontrols2/objectcount/CMakeLists.txt | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/benchmarks/quickcontrols2/creationtime/CMakeLists.txt b/tests/benchmarks/quickcontrols2/creationtime/CMakeLists.txt index 9e3a6d58c1..ad39b3ea0b 100644 --- a/tests/benchmarks/quickcontrols2/creationtime/CMakeLists.txt +++ b/tests/benchmarks/quickcontrols2/creationtime/CMakeLists.txt @@ -1,5 +1,11 @@ # Generated from creationtime.pro. +if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_creationtime LANGUAGES C CXX ASM) + find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST) +endif() + ##################################################################### ## tst_creationtime Test: ##################################################################### diff --git a/tests/benchmarks/quickcontrols2/objectcount/CMakeLists.txt b/tests/benchmarks/quickcontrols2/objectcount/CMakeLists.txt index 752230ec7e..e0434a08eb 100644 --- a/tests/benchmarks/quickcontrols2/objectcount/CMakeLists.txt +++ b/tests/benchmarks/quickcontrols2/objectcount/CMakeLists.txt @@ -1,5 +1,11 @@ # Generated from objectcount.pro. +if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_objectcount LANGUAGES C CXX ASM) + find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST) +endif() + ##################################################################### ## tst_objectcount Test: ##################################################################### |