qt6-bb10/tests/auto/widgets/kernel/qapplication/CMakeLists.txt

39 lines
1.1 KiB
CMake

# 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_qapplication LANGUAGES CXX)
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()
add_subdirectory(desktopsettingsaware)
add_subdirectory(modal)
add_subdirectory(test)
qt_internal_add_executable(apphelper_widgets
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
SOURCES
../../../corelib/kernel/qcoreapplication/apphelper.cpp
../../../corelib/kernel/qcoreapplication/maybeshow.h
LIBRARIES
Qt::CorePrivate
Qt::Widgets
)
set_target_properties(apphelper_widgets PROPERTIES OUTPUT_NAME apphelper)
add_dependencies(tst_qapplication
desktopsettingsaware_helper
modal_helper
apphelper_widgets
)
qt_internal_add_test(tst_static_qapplication
SOURCES
../../../corelib/kernel/qcoreapplication/tst_static_qcoreapplication.cpp
../../../corelib/kernel/qcoreapplication/maybeshow.h
LIBRARIES
Qt::CorePrivate
Qt::Widgets
)