fb1b20eab3
CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I3b98cdc55ead806ec81ce09af9271f9b95af97fa Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
27 lines
1.2 KiB
CMake
27 lines
1.2 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
# Generated from tests.pro.
|
|
|
|
if(QT_BUILD_STANDALONE_TESTS)
|
|
# Add qt_find_package calls for extra dependencies that need to be found when building
|
|
# the standalone tests here.
|
|
# special case begin
|
|
|
|
# Needed for early feature values, despite it being found later on in qt_build_tests().
|
|
# Needs to be find_package, not qt_find_package, because qt_find_package doesn't handle finding
|
|
# component for a super-package that has already been found.
|
|
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core)
|
|
|
|
# Modify the optimization flags specifically for qtbase standalone tests. Other projects
|
|
# are handled by qt_enable_cmake_languages().
|
|
qt_internal_set_up_config_optimizations_like_in_qmake()
|
|
|
|
qt_find_package(WrapDBus1 PROVIDED_TARGETS dbus-1)
|
|
qt_find_package(ICU COMPONENTS i18n uc data PROVIDED_TARGETS ICU::i18n ICU::uc ICU::data)
|
|
qt_find_package(WrapOpenSSL PROVIDED_TARGETS WrapOpenSSL::WrapOpenSSL)
|
|
qt_find_package(WrapOpenSSLHeaders PROVIDED_TARGETS WrapOpenSSLHeaders::WrapOpenSSLHeaders)
|
|
# special case end
|
|
endif()
|
|
qt_build_tests()
|