# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if(TARGET Qt6::Quick)
    qt_internal_add_example(samegame)
    qt_internal_add_example(clocks)
    qt_internal_add_example(tweetsearch)
    qt_internal_add_example(maroon)
endif()
if(TARGET Qt6::Quick AND TARGET Qt6::Graphs)
    qt_internal_add_example(stocqt)
endif()
if(TARGET Qt6::Quick AND TARGET Qt6::QuickControls2)
    qt_internal_add_example(colorpaletteclient)
    qt_internal_add_example(coffee)
    qt_internal_add_example(todolist)
    qt_internal_add_example(calqlatr)

    if(ANDROID OR IOS)
        qt_internal_add_example(hangman)
    endif()
endif()
if(TARGET Qt6::Quick AND TARGET Qt6::Network AND TARGET Qt6::QmlXmlListModel)
    qt_internal_add_example(rssnews)
endif()
if(TARGET Qt6::Quick AND TARGET Qt6::qsb AND TARGET Qt6::Pdf)
    qt_internal_add_example(photosurface)
endif()
if(TARGET Qt6::Widgets)
    qt_internal_add_example(documentviewer)
endif()
if(TARGET Qt::Quick AND TARGET Qt::QuickControls2 AND TARGET Qt::Quick3D)
    qt_internal_add_example(robotarm)
    qt_internal_add_example(FX_Material_Showroom)
endif()
if(TARGET Qt::Quick AND TARGET Qt::QuickControls2 AND TARGET Qt::Quick3D AND TARGET Qt::Quick3DPhysics AND TARGET Qt::Multimedia AND TARGET Qt::Sensors)
    qt_internal_add_example(dice)
endif()
if(TARGET Qt::Quick AND TARGET Qt::QuickControls2 AND TARGET Qt::Multimedia)
    qt_internal_add_example(mediaplayer)
endif()
if(TARGET Qt6::Quick AND TARGET Qt6::QuickControls2 AND TARGET Qt6::Charts)
    qt_internal_add_example(thermostat)
endif()
