diff options
Diffstat (limited to 'tests/auto/other/macgui/CMakeLists.txt')
-rw-r--r-- | tests/auto/other/macgui/CMakeLists.txt | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/auto/other/macgui/CMakeLists.txt b/tests/auto/other/macgui/CMakeLists.txt index 348d7f1241..afa3f0b8df 100644 --- a/tests/auto/other/macgui/CMakeLists.txt +++ b/tests/auto/other/macgui/CMakeLists.txt @@ -1,9 +1,16 @@ -# Generated from macgui.pro. +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_macgui LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() if(NOT APPLE) return() endif() -if(NOT TARGET Qt::Widgets) # special case +if(NOT TARGET Qt::Widgets) return() endif() @@ -15,18 +22,17 @@ qt_internal_add_test(tst_macgui SOURCES guitest.cpp guitest.h tst_macgui.cpp - PUBLIC_LIBRARIES + NO_PCH_SOURCES + guitest.cpp # undef QT_NO_FOREACH + LIBRARIES Qt::CorePrivate Qt::WidgetsPrivate ) -#### Keys ignored in scope 1:.:.:macgui.pro:<TRUE>: -# _REQUIREMENTS = "mac" "widgets" - ## Scopes: ##################################################################### qt_internal_extend_target(tst_macgui CONDITION MACOS - PUBLIC_LIBRARIES + LIBRARIES ${FWApplicationServices} ) |