diff options
Diffstat (limited to 'tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt')
-rw-r--r-- | tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt b/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt index d51f857a4a..8f9783088c 100644 --- a/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt +++ b/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt @@ -1,7 +1,11 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from qcoreapplication.pro. +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qcoreapplication LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() if(NOT QT_FEATURE_private_tests) return() @@ -11,43 +15,25 @@ endif() ## tst_qcoreapplication Test: ##################################################################### -# special case begin if (WIN32) set(target_version "1.2.3.4") else() set(target_version "1.2.3") endif() -# special case end qt_internal_add_test(tst_qcoreapplication - VERSION ${target_version} # special case + VERSION ${target_version} SOURCES tst_qcoreapplication.cpp tst_qcoreapplication.h LIBRARIES Qt::CorePrivate ) -# special case begin if (APPLE) set_property(TARGET tst_qcoreapplication PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist") set_property(TARGET tst_qcoreapplication PROPERTY PROPERTY MACOSX_BUNDLE TRUE) endif() -# special case end if (ANDROID) set_property(TARGET tst_qcoreapplication PROPERTY QT_ANDROID_VERSION_NAME ${target_version}) endif() - - -#### Keys ignored in scope 1:.:.:qcoreapplication.pro:<TRUE>: -# QMAKE_INFO_PLIST = "$$PWD/Info.plist" -# _REQUIREMENTS = "qtConfig(private_tests)" - -## Scopes: -##################################################################### - -#### Keys ignored in scope 2:.:.:qcoreapplication.pro:WIN32: -# VERSION = "1.2.3.4" - -#### Keys ignored in scope 3:.:.:qcoreapplication.pro:else: -# VERSION = "1.2.3" |