2022-07-05 11:26:52 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2024-02-28 10:38:51 +00:00
|
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2022-07-05 11:26:52 +00:00
|
|
|
|
2024-03-06 16:43:04 +00:00
|
|
|
if(QT_BUILD_STANDALONE_EXAMPLES)
|
|
|
|
# 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 examples. Other projects
|
|
|
|
# are handled by qt_enable_cmake_languages().
|
|
|
|
qt_internal_set_up_config_optimizations_like_in_qmake()
|
|
|
|
endif()
|
|
|
|
|
2021-05-24 06:35:39 +00:00
|
|
|
qt_examples_build_begin(EXTERNAL_BUILD)
|
2020-07-07 13:24:45 +00:00
|
|
|
|
2023-07-20 22:04:40 +00:00
|
|
|
add_compile_definitions(QT_NO_CONTEXTLESS_CONNECT)
|
|
|
|
|
2019-03-18 18:26:24 +00:00
|
|
|
add_subdirectory(corelib)
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::DBus)
|
2019-03-18 18:26:24 +00:00
|
|
|
add_subdirectory(dbus)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Network)
|
2019-03-18 18:26:24 +00:00
|
|
|
add_subdirectory(network)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Test)
|
2019-03-18 18:26:24 +00:00
|
|
|
add_subdirectory(qtestlib)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Concurrent)
|
2019-03-18 18:26:24 +00:00
|
|
|
add_subdirectory(qtconcurrent)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Sql)
|
2019-03-18 18:26:24 +00:00
|
|
|
add_subdirectory(sql)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Widgets)
|
2019-06-04 15:08:47 +00:00
|
|
|
add_subdirectory(widgets)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Xml)
|
2019-06-04 15:08:47 +00:00
|
|
|
add_subdirectory(xml)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(TARGET Qt6::Gui)
|
2018-10-24 13:20:27 +00:00
|
|
|
add_subdirectory(gui)
|
2020-07-07 13:24:45 +00:00
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(QT_FEATURE_opengl AND TARGET Qt6::Gui)
|
2020-07-07 13:24:45 +00:00
|
|
|
add_subdirectory(opengl)
|
|
|
|
endif()
|
2022-11-14 13:49:32 +00:00
|
|
|
if(QT_FEATURE_vulkan AND TARGET Qt6::Gui)
|
2020-07-07 13:24:45 +00:00
|
|
|
add_subdirectory(vulkan)
|
2018-10-24 13:20:27 +00:00
|
|
|
endif()
|
2019-06-04 15:08:47 +00:00
|
|
|
|
2019-06-06 11:08:41 +00:00
|
|
|
qt_examples_build_end()
|