2022-07-05 12:02:29 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-26 08:37:37 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 12:02:29 +00:00
|
|
|
|
2021-06-25 08:58:39 +00:00
|
|
|
add_subdirectory(cmake)
|
|
|
|
|
2022-08-16 16:37:30 +00:00
|
|
|
# For now, only build a subset of CMake auto tests when QT_BUILD_MINIMAL_STATIC_TEST
|
|
|
|
# is specified and the build is targeting iOS. QT_BUILD_MINIMAL_STATIC_TEST is used in our CI.
|
|
|
|
# Regular tests shouldn't be built because the CI will try to run them and fail due to missing
|
|
|
|
# simulator support.
|
|
|
|
if(IOS AND QT_BUILD_MINIMAL_STATIC_TESTS)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2022-02-18 10:13:56 +00:00
|
|
|
if(TARGET Qt::Quick)
|
|
|
|
add_subdirectory(qml)
|
|
|
|
add_subdirectory(quick)
|
|
|
|
endif()
|
|
|
|
|
2021-06-25 08:58:39 +00:00
|
|
|
# Limit set of tests to run for static Qt builds.
|
|
|
|
if(QT_BUILD_MINIMAL_STATIC_TESTS)
|
|
|
|
return()
|
|
|
|
endif()
|
2019-05-24 13:35:20 +00:00
|
|
|
|
2021-03-22 14:31:55 +00:00
|
|
|
if(TARGET Qt::Quick)
|
|
|
|
add_subdirectory(quicktest)
|
|
|
|
endif()
|
2021-07-28 09:21:25 +00:00
|
|
|
if(TARGET Qt::QuickTest)
|
|
|
|
add_subdirectory(core)
|
|
|
|
endif()
|
2019-08-07 14:25:52 +00:00
|
|
|
add_subdirectory(toolsupport)
|
2022-01-25 12:16:14 +00:00
|
|
|
if(NOT UIKIT AND NOT ANDROID AND NOT QNX) # FIXME: QTBUG-92591 QTBUG-100202
|
2019-08-07 14:25:52 +00:00
|
|
|
add_subdirectory(qmltest)
|
|
|
|
endif()
|
2021-03-22 14:31:55 +00:00
|
|
|
if(TARGET Qt::Quick)
|
2019-08-07 14:25:52 +00:00
|
|
|
add_subdirectory(particles)
|
|
|
|
endif()
|
2021-03-22 14:31:55 +00:00
|
|
|
if(TARGET Qt::QuickWidgets)
|
2020-04-30 15:37:27 +00:00
|
|
|
add_subdirectory(quickwidgets)
|
|
|
|
endif()
|
2022-02-17 15:09:40 +00:00
|
|
|
if(TARGET Qt::QmlDomPrivate AND NOT CMAKE_CROSSCOMPILING)
|
2020-12-09 15:38:35 +00:00
|
|
|
add_subdirectory(qmldom)
|
2021-12-13 02:41:19 +00:00
|
|
|
add_subdirectory(qmlls)
|
2020-12-09 15:38:35 +00:00
|
|
|
endif()
|
2021-07-28 09:21:25 +00:00
|
|
|
if(TARGET Qt::QuickTemplates2)
|
2022-11-18 07:15:16 +00:00
|
|
|
add_subdirectory(quickcontrols)
|
2021-12-14 13:41:01 +00:00
|
|
|
add_subdirectory(quickdialogs)
|
2021-07-28 09:21:25 +00:00
|
|
|
endif()
|