Examples: Use Qt6:: to qualify Qt CMake packages

This is what we promote also in the documentation.

Change-Id: If91aebafe861b0c934acbb2c69afd182abc3345d
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Kai Köhne 2022-11-14 14:49:32 +01:00
parent 9e251d44a7
commit bec264c15f
262 changed files with 849 additions and 849 deletions

View File

@ -6,34 +6,34 @@ qt_examples_build_begin(EXTERNAL_BUILD)
add_subdirectory(corelib) add_subdirectory(corelib)
add_subdirectory(embedded) add_subdirectory(embedded)
add_subdirectory(qpa) add_subdirectory(qpa)
if(TARGET Qt::DBus) if(TARGET Qt6::DBus)
add_subdirectory(dbus) add_subdirectory(dbus)
endif() endif()
if(TARGET Qt::Network) if(TARGET Qt6::Network)
add_subdirectory(network) add_subdirectory(network)
endif() endif()
if(TARGET Qt::Test) if(TARGET Qt6::Test)
add_subdirectory(qtestlib) add_subdirectory(qtestlib)
endif() endif()
if(TARGET Qt::Concurrent) if(TARGET Qt6::Concurrent)
add_subdirectory(qtconcurrent) add_subdirectory(qtconcurrent)
endif() endif()
if(TARGET Qt::Sql) if(TARGET Qt6::Sql)
add_subdirectory(sql) add_subdirectory(sql)
endif() endif()
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
add_subdirectory(widgets) add_subdirectory(widgets)
endif() endif()
if(TARGET Qt::Xml) if(TARGET Qt6::Xml)
add_subdirectory(xml) add_subdirectory(xml)
endif() endif()
if(TARGET Qt::Gui) if(TARGET Qt6::Gui)
add_subdirectory(gui) add_subdirectory(gui)
endif() endif()
if(QT_FEATURE_opengl AND TARGET Qt::Gui) if(QT_FEATURE_opengl AND TARGET Qt6::Gui)
add_subdirectory(opengl) add_subdirectory(opengl)
endif() endif()
if(QT_FEATURE_vulkan AND TARGET Qt::Gui) if(QT_FEATURE_vulkan AND TARGET Qt6::Gui)
add_subdirectory(vulkan) add_subdirectory(vulkan)
endif() endif()

View File

@ -23,9 +23,9 @@ qt_add_executable(bindablesubscription
) )
target_link_libraries(bindablesubscription PUBLIC target_link_libraries(bindablesubscription PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -23,9 +23,9 @@ qt_add_executable(subscription
) )
target_link_libraries(subscription PUBLIC target_link_libraries(subscription PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -1,13 +1,13 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Widgets) if(NOT TARGET Qt6::Widgets)
return() return()
endif() endif()
if(QT_FEATURE_sharedmemory) if(QT_FEATURE_sharedmemory)
qt_internal_add_example(sharedmemory) qt_internal_add_example(sharedmemory)
endif() endif()
if(QT_FEATURE_localserver AND TARGET Qt::Network) if(QT_FEATURE_localserver AND TARGET Qt6::Network)
qt_internal_add_example(localfortuneserver) qt_internal_add_example(localfortuneserver)
qt_internal_add_example(localfortuneclient) qt_internal_add_example(localfortuneclient)
endif() endif()

View File

@ -25,10 +25,10 @@ set_target_properties(localfortuneclient PROPERTIES
) )
target_link_libraries(localfortuneclient PUBLIC target_link_libraries(localfortuneclient PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS localfortuneclient install(TARGETS localfortuneclient

View File

@ -25,10 +25,10 @@ set_target_properties(localfortuneserver PROPERTIES
) )
target_link_libraries(localfortuneserver PUBLIC target_link_libraries(localfortuneserver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS localfortuneserver install(TARGETS localfortuneserver

View File

@ -26,9 +26,9 @@ set_target_properties(sharedmemory PROPERTIES
) )
target_link_libraries(sharedmemory PUBLIC target_link_libraries(sharedmemory PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS sharedmemory install(TARGETS sharedmemory

View File

@ -1,6 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(mimetypebrowser) qt_internal_add_example(mimetypebrowser)
endif() endif()

View File

@ -26,9 +26,9 @@ set_target_properties(mimetypebrowser PROPERTIES
) )
target_link_libraries(mimetypebrowser PUBLIC target_link_libraries(mimetypebrowser PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS mimetypebrowser install(TARGETS mimetypebrowser

View File

@ -28,9 +28,9 @@ set_target_properties(permissions PROPERTIES
qt_finalize_executable(permissions) qt_finalize_executable(permissions)
target_link_libraries(permissions PUBLIC target_link_libraries(permissions PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS permissions install(TARGETS permissions

View File

@ -19,7 +19,7 @@ qt_add_executable(cbordump
) )
target_link_libraries(cbordump PUBLIC target_link_libraries(cbordump PUBLIC
Qt::Core Qt6::Core
) )
install(TARGETS cbordump install(TARGETS cbordump

View File

@ -26,7 +26,7 @@ qt_add_executable(convert
) )
target_link_libraries(convert PUBLIC target_link_libraries(convert PUBLIC
Qt::Core Qt6::Core
) )
install(TARGETS convert install(TARGETS convert

View File

@ -22,7 +22,7 @@ qt_add_executable(savegame
) )
target_link_libraries(savegame PUBLIC target_link_libraries(savegame PUBLIC
Qt::Core Qt6::Core
) )
install(TARGETS savegame install(TARGETS savegame

View File

@ -3,7 +3,7 @@
qt_internal_add_example(semaphores) qt_internal_add_example(semaphores)
qt_internal_add_example(waitconditions) qt_internal_add_example(waitconditions)
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(mandelbrot) qt_internal_add_example(mandelbrot)
qt_internal_add_example(queuedcustomtype) qt_internal_add_example(queuedcustomtype)
endif() endif()

View File

@ -26,9 +26,9 @@ set_target_properties(mandelbrot PROPERTIES
) )
target_link_libraries(mandelbrot PUBLIC target_link_libraries(mandelbrot PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS mandelbrot install(TARGETS mandelbrot

View File

@ -27,9 +27,9 @@ set_target_properties(queuedcustomtype PROPERTIES
) )
target_link_libraries(queuedcustomtype PUBLIC target_link_libraries(queuedcustomtype PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS queuedcustomtype install(TARGETS queuedcustomtype

View File

@ -19,7 +19,7 @@ qt_add_executable(semaphores
) )
target_link_libraries(semaphores PUBLIC target_link_libraries(semaphores PUBLIC
Qt::Core Qt6::Core
) )
install(TARGETS semaphores install(TARGETS semaphores

View File

@ -19,7 +19,7 @@ qt_add_executable(waitconditions
) )
target_link_libraries(waitconditions PUBLIC target_link_libraries(waitconditions PUBLIC
Qt::Core Qt6::Core
) )
install(TARGETS waitconditions install(TARGETS waitconditions

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Widgets) if(NOT TARGET Qt6::Widgets)
return() return()
endif() endif()
qt_internal_add_example(contiguouscache) qt_internal_add_example(contiguouscache)

View File

@ -25,9 +25,9 @@ set_target_properties(contiguouscache PROPERTIES
) )
target_link_libraries(contiguouscache PUBLIC target_link_libraries(contiguouscache PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS contiguouscache install(TARGETS contiguouscache

View File

@ -25,9 +25,9 @@ set_target_properties(customtype PROPERTIES
) )
target_link_libraries(customtype PUBLIC target_link_libraries(customtype PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS customtype install(TARGETS customtype

View File

@ -26,9 +26,9 @@ set_target_properties(customtypesending PROPERTIES
) )
target_link_libraries(customtypesending PUBLIC target_link_libraries(customtypesending PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS customtypesending install(TARGETS customtypesending

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::DBus) if(NOT TARGET Qt6::DBus)
return() return()
endif() endif()
qt_internal_add_example(listnames) qt_internal_add_example(listnames)
@ -9,7 +9,7 @@ qt_internal_add_example(pingpong)
if(QT_FEATURE_process) if(QT_FEATURE_process)
qt_internal_add_example(complexpingpong) qt_internal_add_example(complexpingpong)
endif() endif()
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(chat) qt_internal_add_example(chat)
add_subdirectory(remotecontrolledcar) add_subdirectory(remotecontrolledcar)
endif() endif()

View File

@ -43,10 +43,10 @@ set_target_properties(chat PROPERTIES
) )
target_link_libraries(chat PUBLIC target_link_libraries(chat PUBLIC
Qt::Core Qt6::Core
Qt::DBus Qt6::DBus
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS chat install(TARGETS chat

View File

@ -19,8 +19,8 @@ qt_add_executable(listnames
) )
target_link_libraries(listnames PUBLIC target_link_libraries(listnames PUBLIC
Qt::Core Qt6::Core
Qt::DBus Qt6::DBus
) )
install(TARGETS listnames install(TARGETS listnames

View File

@ -36,10 +36,10 @@ set_target_properties(car PROPERTIES
) )
target_link_libraries(car PUBLIC target_link_libraries(car PUBLIC
Qt::Core Qt6::Core
Qt::DBus Qt6::DBus
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS car install(TARGETS car

View File

@ -35,10 +35,10 @@ set_target_properties(controller PROPERTIES
) )
target_link_libraries(controller PUBLIC target_link_libraries(controller PUBLIC
Qt::Core Qt6::Core
Qt::DBus Qt6::DBus
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS controller install(TARGETS controller

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Gui OR (NOT embedded AND NOT x11)) if(NOT TARGET Qt6::Gui OR (NOT embedded AND NOT x11))
return() return()
endif() endif()
qt_internal_add_example(styleexample) qt_internal_add_example(styleexample)

View File

@ -24,9 +24,9 @@ set_target_properties(digiflip PROPERTIES
) )
target_link_libraries(digiflip PUBLIC target_link_libraries(digiflip PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS digiflip install(TARGETS digiflip

View File

@ -25,9 +25,9 @@ set_target_properties(flickable PROPERTIES
) )
target_link_libraries(flickable PUBLIC target_link_libraries(flickable PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS flickable install(TARGETS flickable

View File

@ -26,10 +26,10 @@ set_target_properties(flightinfo PROPERTIES
) )
target_link_libraries(flightinfo PUBLIC target_link_libraries(flightinfo PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -27,10 +27,10 @@ set_target_properties(lightmaps PROPERTIES
) )
target_link_libraries(lightmaps PUBLIC target_link_libraries(lightmaps PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS lightmaps install(TARGETS lightmaps

View File

@ -24,9 +24,9 @@ set_target_properties(raycasting PROPERTIES
) )
target_link_libraries(raycasting PUBLIC target_link_libraries(raycasting PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -26,9 +26,9 @@ set_target_properties(styleexample PROPERTIES
) )
target_link_libraries(styleexample PUBLIC target_link_libraries(styleexample PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Gui) if(NOT TARGET Qt6::Gui)
return() return()
endif() endif()
qt_internal_add_example(analogclock) qt_internal_add_example(analogclock)

View File

@ -29,8 +29,8 @@ target_include_directories(gui_analogclock PUBLIC
) )
target_link_libraries(gui_analogclock PUBLIC target_link_libraries(gui_analogclock PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
) )
install(TARGETS gui_analogclock install(TARGETS gui_analogclock

View File

@ -25,8 +25,8 @@ set_target_properties(rasterwindow PROPERTIES
) )
target_link_libraries(rasterwindow PUBLIC target_link_libraries(rasterwindow PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
) )
install(TARGETS rasterwindow install(TARGETS rasterwindow

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Network) if(NOT TARGET Qt6::Network)
return() return()
endif() endif()
qt_internal_add_example(download) qt_internal_add_example(download)
@ -9,7 +9,7 @@ qt_internal_add_example(downloadmanager)
if(NOT INTEGRITY) if(NOT INTEGRITY)
qt_internal_add_example(dnslookup) qt_internal_add_example(dnslookup)
endif() endif()
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(blockingfortuneclient) qt_internal_add_example(blockingfortuneclient)
qt_internal_add_example(broadcastreceiver) qt_internal_add_example(broadcastreceiver)
qt_internal_add_example(broadcastsender) qt_internal_add_example(broadcastsender)
@ -23,17 +23,17 @@ if(TARGET Qt::Widgets)
qt_internal_add_example(fortuneclient) qt_internal_add_example(fortuneclient)
qt_internal_add_example(fortuneserver) qt_internal_add_example(fortuneserver)
endif() endif()
if(QT_FEATURE_processenvironment AND TARGET Qt::Widgets) if(QT_FEATURE_processenvironment AND TARGET Qt6::Widgets)
qt_internal_add_example(network-chat) qt_internal_add_example(network-chat)
endif() endif()
if(QT_FEATURE_ssl AND TARGET Qt::Widgets) if(QT_FEATURE_ssl AND TARGET Qt6::Widgets)
qt_internal_add_example(securesocketclient) qt_internal_add_example(securesocketclient)
endif() endif()
if(QT_FEATURE_dtls AND TARGET Qt::Widgets) if(QT_FEATURE_dtls AND TARGET Qt6::Widgets)
qt_internal_add_example(secureudpserver) qt_internal_add_example(secureudpserver)
qt_internal_add_example(secureudpclient) qt_internal_add_example(secureudpclient)
endif() endif()
if(QT_FEATURE_sctp AND TARGET Qt::Widgets) if(QT_FEATURE_sctp AND TARGET Qt6::Widgets)
qt_internal_add_example(multistreamserver) qt_internal_add_example(multistreamserver)
qt_internal_add_example(multistreamclient) qt_internal_add_example(multistreamclient)
endif() endif()

View File

@ -26,10 +26,10 @@ set_target_properties(blockingfortuneclient PROPERTIES
) )
target_link_libraries(blockingfortuneclient PUBLIC target_link_libraries(blockingfortuneclient PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS blockingfortuneclient install(TARGETS blockingfortuneclient

View File

@ -25,10 +25,10 @@ set_target_properties(broadcastreceiver PROPERTIES
) )
target_link_libraries(broadcastreceiver PUBLIC target_link_libraries(broadcastreceiver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS broadcastreceiver install(TARGETS broadcastreceiver

View File

@ -25,10 +25,10 @@ set_target_properties(broadcastsender PROPERTIES
) )
target_link_libraries(broadcastsender PUBLIC target_link_libraries(broadcastsender PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS broadcastsender install(TARGETS broadcastsender

View File

@ -19,8 +19,8 @@ qt_add_executable(dnslookup
) )
target_link_libraries(dnslookup PUBLIC target_link_libraries(dnslookup PUBLIC
Qt::Core Qt6::Core
Qt::Network Qt6::Network
) )
install(TARGETS dnslookup install(TARGETS dnslookup

View File

@ -19,8 +19,8 @@ qt_add_executable(download
) )
target_link_libraries(download PUBLIC target_link_libraries(download PUBLIC
Qt::Core Qt6::Core
Qt::Network Qt6::Network
) )
install(TARGETS download install(TARGETS download

View File

@ -21,8 +21,8 @@ qt_add_executable(downloadmanager
) )
target_link_libraries(downloadmanager PUBLIC target_link_libraries(downloadmanager PUBLIC
Qt::Core Qt6::Core
Qt::Network Qt6::Network
) )
install(TARGETS downloadmanager install(TARGETS downloadmanager

View File

@ -25,10 +25,10 @@ set_target_properties(fortuneclient PROPERTIES
) )
target_link_libraries(fortuneclient PUBLIC target_link_libraries(fortuneclient PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS fortuneclient install(TARGETS fortuneclient

View File

@ -25,10 +25,10 @@ set_target_properties(fortuneserver PROPERTIES
) )
target_link_libraries(fortuneserver PUBLIC target_link_libraries(fortuneserver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS fortuneserver install(TARGETS fortuneserver

View File

@ -26,10 +26,10 @@ set_target_properties(googlesuggest PROPERTIES
) )
target_link_libraries(googlesuggest PUBLIC target_link_libraries(googlesuggest PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS googlesuggest install(TARGETS googlesuggest

View File

@ -27,10 +27,10 @@ set_target_properties(http PROPERTIES
) )
target_link_libraries(http PUBLIC target_link_libraries(http PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS http install(TARGETS http

View File

@ -25,10 +25,10 @@ set_target_properties(loopback PROPERTIES
) )
target_link_libraries(loopback PUBLIC target_link_libraries(loopback PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS loopback install(TARGETS loopback

View File

@ -25,10 +25,10 @@ set_target_properties(multicastreceiver PROPERTIES
) )
target_link_libraries(multicastreceiver PUBLIC target_link_libraries(multicastreceiver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS multicastreceiver install(TARGETS multicastreceiver

View File

@ -25,10 +25,10 @@ set_target_properties(multicastsender PROPERTIES
) )
target_link_libraries(multicastsender PUBLIC target_link_libraries(multicastsender PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS multicastsender install(TARGETS multicastsender

View File

@ -29,10 +29,10 @@ set_target_properties(multistreamclient PROPERTIES
) )
target_link_libraries(multistreamclient PUBLIC target_link_libraries(multistreamclient PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS multistreamclient install(TARGETS multistreamclient

View File

@ -29,10 +29,10 @@ set_target_properties(multistreamserver PROPERTIES
) )
target_link_libraries(multistreamserver PUBLIC target_link_libraries(multistreamserver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS multistreamserver install(TARGETS multistreamserver

View File

@ -30,10 +30,10 @@ set_target_properties(network-chat PROPERTIES
) )
target_link_libraries(network-chat PUBLIC target_link_libraries(network-chat PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS network-chat install(TARGETS network-chat

View File

@ -28,10 +28,10 @@ set_target_properties(securesocketclient PROPERTIES
) )
target_link_libraries(securesocketclient PUBLIC target_link_libraries(securesocketclient PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -28,10 +28,10 @@ set_target_properties(secureudpclient PROPERTIES
) )
target_link_libraries(secureudpclient PUBLIC target_link_libraries(secureudpclient PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS secureudpclient install(TARGETS secureudpclient

View File

@ -28,10 +28,10 @@ set_target_properties(secureudpserver PROPERTIES
) )
target_link_libraries(secureudpserver PUBLIC target_link_libraries(secureudpserver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS secureudpserver install(TARGETS secureudpserver

View File

@ -27,10 +27,10 @@ set_target_properties(threadedfortuneserver PROPERTIES
) )
target_link_libraries(threadedfortuneserver PUBLIC target_link_libraries(threadedfortuneserver PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS threadedfortuneserver install(TARGETS threadedfortuneserver

View File

@ -37,10 +37,10 @@ set_target_properties(torrent PROPERTIES
) )
target_link_libraries(torrent PUBLIC target_link_libraries(torrent PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -28,11 +28,11 @@ set_target_properties(2dpainting PROPERTIES
) )
target_link_libraries(2dpainting PUBLIC target_link_libraries(2dpainting PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::OpenGLWidgets Qt6::OpenGLWidgets
Qt::Widgets Qt6::Widgets
) )
install(TARGETS 2dpainting install(TARGETS 2dpainting

View File

@ -5,7 +5,7 @@ qt_internal_add_example(hellowindow)
qt_internal_add_example(paintedwindow) qt_internal_add_example(paintedwindow)
qt_internal_add_example(openglwindow) qt_internal_add_example(openglwindow)
qt_internal_add_example(qopenglwindow) qt_internal_add_example(qopenglwindow)
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(contextinfo) qt_internal_add_example(contextinfo)
qt_internal_add_example(threadedqopenglwidget) qt_internal_add_example(threadedqopenglwidget)
qt_internal_add_example(2dpainting) qt_internal_add_example(2dpainting)

View File

@ -25,9 +25,9 @@ set_target_properties(computegles31 PROPERTIES
) )
target_link_libraries(computegles31 PUBLIC target_link_libraries(computegles31 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
) )
# Resources: # Resources:

View File

@ -26,10 +26,10 @@ set_target_properties(contextinfo PROPERTIES
) )
target_link_libraries(contextinfo PUBLIC target_link_libraries(contextinfo PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::Widgets Qt6::Widgets
) )
install(TARGETS contextinfo install(TARGETS contextinfo

View File

@ -26,11 +26,11 @@ set_target_properties(cube PROPERTIES
) )
target_link_libraries(cube PUBLIC target_link_libraries(cube PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::OpenGLWidgets Qt6::OpenGLWidgets
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -28,11 +28,11 @@ set_target_properties(hellogl2 PROPERTIES
) )
target_link_libraries(hellogl2 PUBLIC target_link_libraries(hellogl2 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::OpenGLWidgets Qt6::OpenGLWidgets
Qt::Widgets Qt6::Widgets
) )
install(TARGETS hellogl2 install(TARGETS hellogl2

View File

@ -26,9 +26,9 @@ set_target_properties(hellogles3 PROPERTIES
) )
target_link_libraries(hellogles3 PUBLIC target_link_libraries(hellogles3 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
) )
# Resources: # Resources:

View File

@ -25,11 +25,11 @@ set_target_properties(hellowindow PROPERTIES
) )
target_link_libraries(hellowindow PUBLIC target_link_libraries(hellowindow PUBLIC
Qt::Core Qt6::Core
Qt::CorePrivate Qt6::CorePrivate
Qt::Gui Qt6::Gui
Qt::GuiPrivate Qt6::GuiPrivate
Qt::OpenGL Qt6::OpenGL
) )
install(TARGETS hellowindow install(TARGETS hellowindow

View File

@ -25,9 +25,9 @@ set_target_properties(openglwindow PROPERTIES
) )
target_link_libraries(openglwindow PUBLIC target_link_libraries(openglwindow PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
) )
install(TARGETS openglwindow install(TARGETS openglwindow

View File

@ -25,9 +25,9 @@ set_target_properties(paintedwindow PROPERTIES
) )
target_link_libraries(paintedwindow PUBLIC target_link_libraries(paintedwindow PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
) )
install(TARGETS paintedwindow install(TARGETS paintedwindow

View File

@ -27,11 +27,11 @@ set_target_properties(qopenglwidget PROPERTIES
) )
target_link_libraries(qopenglwidget PUBLIC target_link_libraries(qopenglwidget PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::OpenGLWidgets Qt6::OpenGLWidgets
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -25,9 +25,9 @@ set_target_properties(qopenglwindow PROPERTIES
) )
target_link_libraries(qopenglwindow PUBLIC target_link_libraries(qopenglwindow PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
) )
# Resources: # Resources:

View File

@ -26,11 +26,11 @@ set_target_properties(textures PROPERTIES
) )
target_link_libraries(textures PUBLIC target_link_libraries(textures PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::OpenGLWidgets Qt6::OpenGLWidgets
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -27,11 +27,11 @@ set_target_properties(threadedqopenglwidget PROPERTIES
) )
target_link_libraries(threadedqopenglwidget PUBLIC target_link_libraries(threadedqopenglwidget PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::OpenGL Qt6::OpenGL
Qt::OpenGLWidgets Qt6::OpenGLWidgets
Qt::Widgets Qt6::Widgets
) )
install(TARGETS threadedqopenglwidget install(TARGETS threadedqopenglwidget

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Gui) if(NOT TARGET Qt6::Gui)
return() return()
endif() endif()
qt_internal_add_example(windows) qt_internal_add_example(windows)

View File

@ -24,8 +24,8 @@ set_target_properties(qrasterwindow PROPERTIES
) )
target_link_libraries(qrasterwindow PUBLIC target_link_libraries(qrasterwindow PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
) )
install(TARGETS qrasterwindow install(TARGETS qrasterwindow

View File

@ -25,10 +25,10 @@ set_target_properties(windows PROPERTIES
) )
target_link_libraries(windows PUBLIC target_link_libraries(windows PUBLIC
Qt::Core Qt6::Core
Qt::CorePrivate Qt6::CorePrivate
Qt::Gui Qt6::Gui
Qt::GuiPrivate Qt6::GuiPrivate
) )
install(TARGETS windows install(TARGETS windows

View File

@ -1,15 +1,15 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Concurrent) if(NOT TARGET Qt6::Concurrent)
return() return()
endif() endif()
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(imagescaling) qt_internal_add_example(imagescaling)
qt_internal_add_example(progressdialog) qt_internal_add_example(progressdialog)
qt_internal_add_example(runfunction) qt_internal_add_example(runfunction)
qt_internal_add_example(wordcount) qt_internal_add_example(wordcount)
endif() endif()
if(TARGET Qt::Gui) if(TARGET Qt6::Gui)
qt_internal_add_example(map) qt_internal_add_example(map)
endif() endif()

View File

@ -27,11 +27,11 @@ set_target_properties(imagescaling PROPERTIES
) )
target_link_libraries(imagescaling PUBLIC target_link_libraries(imagescaling PUBLIC
Qt::Concurrent Qt6::Concurrent
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Network Qt6::Network
Qt::Widgets Qt6::Widgets
) )
install(TARGETS imagescaling install(TARGETS imagescaling

View File

@ -19,9 +19,9 @@ qt_add_executable(mapdemo
) )
target_link_libraries(mapdemo PUBLIC target_link_libraries(mapdemo PUBLIC
Qt::Concurrent Qt6::Concurrent
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
) )
install(TARGETS mapdemo install(TARGETS mapdemo

View File

@ -24,10 +24,10 @@ set_target_properties(progressdialog PROPERTIES
) )
target_link_libraries(progressdialog PUBLIC target_link_libraries(progressdialog PUBLIC
Qt::Concurrent Qt6::Concurrent
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS progressdialog install(TARGETS progressdialog

View File

@ -19,10 +19,10 @@ qt_add_executable(runfunction
) )
target_link_libraries(runfunction PUBLIC target_link_libraries(runfunction PUBLIC
Qt::Concurrent Qt6::Concurrent
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS runfunction install(TARGETS runfunction

View File

@ -19,10 +19,10 @@ qt_add_executable(wordcount
) )
target_link_libraries(wordcount PUBLIC target_link_libraries(wordcount PUBLIC
Qt::Concurrent Qt6::Concurrent
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
install(TARGETS wordcount install(TARGETS wordcount

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Widgets) if(NOT TARGET Qt6::Widgets)
return() return()
endif() endif()
qt_internal_add_example(tutorial1) qt_internal_add_example(tutorial1)

View File

@ -24,10 +24,10 @@ set_target_properties(tutorial1 PROPERTIES
) )
target_link_libraries(tutorial1 PUBLIC target_link_libraries(tutorial1 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Test Qt6::Test
Qt::Widgets Qt6::Widgets
) )
install(TARGETS tutorial1 install(TARGETS tutorial1

View File

@ -24,10 +24,10 @@ set_target_properties(tutorial2 PROPERTIES
) )
target_link_libraries(tutorial2 PUBLIC target_link_libraries(tutorial2 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Test Qt6::Test
Qt::Widgets Qt6::Widgets
) )
install(TARGETS tutorial2 install(TARGETS tutorial2

View File

@ -24,10 +24,10 @@ set_target_properties(tutorial3 PROPERTIES
) )
target_link_libraries(tutorial3 PUBLIC target_link_libraries(tutorial3 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Test Qt6::Test
Qt::Widgets Qt6::Widgets
) )
install(TARGETS tutorial3 install(TARGETS tutorial3

View File

@ -24,10 +24,10 @@ set_target_properties(tutorial4 PROPERTIES
) )
target_link_libraries(tutorial4 PUBLIC target_link_libraries(tutorial4 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Test Qt6::Test
Qt::Widgets Qt6::Widgets
) )
install(TARGETS tutorial4 install(TARGETS tutorial4

View File

@ -24,10 +24,10 @@ set_target_properties(tutorial5 PROPERTIES
) )
target_link_libraries(tutorial5 PUBLIC target_link_libraries(tutorial5 PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Test Qt6::Test
Qt::Widgets Qt6::Widgets
) )
install(TARGETS tutorial5 install(TARGETS tutorial5

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Widgets) if(NOT TARGET Qt6::Widgets)
return() return()
endif() endif()
qt_internal_add_example(books) qt_internal_add_example(books)
@ -11,7 +11,7 @@ qt_internal_add_example(querymodel)
qt_internal_add_example(relationaltablemodel) qt_internal_add_example(relationaltablemodel)
qt_internal_add_example(sqlwidgetmapper) qt_internal_add_example(sqlwidgetmapper)
qt_internal_add_example(tablemodel) qt_internal_add_example(tablemodel)
if(TARGET Qt::Xml) if(TARGET Qt6::Xml)
qt_internal_add_example(masterdetail) qt_internal_add_example(masterdetail)
endif() endif()

View File

@ -28,10 +28,10 @@ set_target_properties(books PROPERTIES
) )
target_link_libraries(books PUBLIC target_link_libraries(books PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -26,10 +26,10 @@ set_target_properties(cachedtable PROPERTIES
) )
target_link_libraries(cachedtable PUBLIC target_link_libraries(cachedtable PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
install(TARGETS cachedtable install(TARGETS cachedtable

View File

@ -28,10 +28,10 @@ set_target_properties(drilldown PROPERTIES
) )
target_link_libraries(drilldown PUBLIC target_link_libraries(drilldown PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

View File

@ -27,11 +27,11 @@ set_target_properties(masterdetail PROPERTIES
) )
target_link_libraries(masterdetail PUBLIC target_link_libraries(masterdetail PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
Qt::Xml Qt6::Xml
) )
# Resources: # Resources:

View File

@ -27,10 +27,10 @@ set_target_properties(querymodel PROPERTIES
) )
target_link_libraries(querymodel PUBLIC target_link_libraries(querymodel PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
install(TARGETS querymodel install(TARGETS querymodel

View File

@ -25,10 +25,10 @@ set_target_properties(relationaltablemodel PROPERTIES
) )
target_link_libraries(relationaltablemodel PUBLIC target_link_libraries(relationaltablemodel PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
install(TARGETS relationaltablemodel install(TARGETS relationaltablemodel

View File

@ -31,10 +31,10 @@ set_target_properties(sqlbrowser PROPERTIES
) )
target_link_libraries(sqlbrowser PUBLIC target_link_libraries(sqlbrowser PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
install(TARGETS sqlbrowser install(TARGETS sqlbrowser

View File

@ -25,10 +25,10 @@ set_target_properties(sqlwidgetmapper PROPERTIES
) )
target_link_libraries(sqlwidgetmapper PUBLIC target_link_libraries(sqlwidgetmapper PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
install(TARGETS sqlwidgetmapper install(TARGETS sqlwidgetmapper

View File

@ -25,10 +25,10 @@ set_target_properties(tablemodel PROPERTIES
) )
target_link_libraries(tablemodel PUBLIC target_link_libraries(tablemodel PUBLIC
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Sql Qt6::Sql
Qt::Widgets Qt6::Widgets
) )
install(TARGETS tablemodel install(TARGETS tablemodel

View File

@ -4,9 +4,9 @@
qt_internal_add_example(hellovulkanwindow) qt_internal_add_example(hellovulkanwindow)
qt_internal_add_example(hellovulkantriangle) qt_internal_add_example(hellovulkantriangle)
qt_internal_add_example(hellovulkantexture) qt_internal_add_example(hellovulkantexture)
if(TARGET Qt::Widgets) if(TARGET Qt6::Widgets)
qt_internal_add_example(hellovulkanwidget) qt_internal_add_example(hellovulkanwidget)
endif() endif()
if(TARGET Qt::Concurrent AND TARGET Qt::Widgets) if(TARGET Qt6::Concurrent AND TARGET Qt6::Widgets)
qt_internal_add_example(hellovulkancubes) qt_internal_add_example(hellovulkancubes)
endif() endif()

View File

@ -30,10 +30,10 @@ set_target_properties(hellovulkancubes PROPERTIES
) )
target_link_libraries(hellovulkancubes PUBLIC target_link_libraries(hellovulkancubes PUBLIC
Qt::Concurrent Qt6::Concurrent
Qt::Core Qt6::Core
Qt::Gui Qt6::Gui
Qt::Widgets Qt6::Widgets
) )
# Resources: # Resources:

Some files were not shown because too many files have changed in this diff Show More