2024-01-02 12:12:49 +00:00
|
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
2024-03-07 14:22:17 +00:00
|
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2024-01-02 12:12:49 +00:00
|
|
|
|
|
|
|
# qt_examples_build_end() misses at least some of these due to some
|
|
|
|
# source subdirectories being added multiple times. See QTBUG-96159.
|
2025-09-15 12:35:35 +00:00
|
|
|
set(reused_dir_targets shapes_shared)
|
|
|
|
|
|
|
|
qt_internal_add_example(shapes)
|
|
|
|
|
|
|
|
if(TARGET Qt6::Svg)
|
|
|
|
list(APPEND reused_dir_targets weatherforecast_shared)
|
|
|
|
qt_internal_add_example(weatherforecast)
|
|
|
|
endif()
|
2024-01-02 12:12:49 +00:00
|
|
|
|
|
|
|
foreach(target IN LISTS reused_dir_targets)
|
|
|
|
if(TARGET ${target})
|
|
|
|
qt_autogen_tools(${target} ENABLE_AUTOGEN_TOOLS moc rcc)
|
|
|
|
if(TARGET Qt6::Widgets)
|
|
|
|
qt_autogen_tools(${target} ENABLE_AUTOGEN_TOOLS uic)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endforeach()
|