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(embedded)
add_subdirectory(qpa)
if(TARGET Qt::DBus)
if(TARGET Qt6::DBus)
add_subdirectory(dbus)
endif()
if(TARGET Qt::Network)
if(TARGET Qt6::Network)
add_subdirectory(network)
endif()
if(TARGET Qt::Test)
if(TARGET Qt6::Test)
add_subdirectory(qtestlib)
endif()
if(TARGET Qt::Concurrent)
if(TARGET Qt6::Concurrent)
add_subdirectory(qtconcurrent)
endif()
if(TARGET Qt::Sql)
if(TARGET Qt6::Sql)
add_subdirectory(sql)
endif()
if(TARGET Qt::Widgets)
if(TARGET Qt6::Widgets)
add_subdirectory(widgets)
endif()
if(TARGET Qt::Xml)
if(TARGET Qt6::Xml)
add_subdirectory(xml)
endif()
if(TARGET Qt::Gui)
if(TARGET Qt6::Gui)
add_subdirectory(gui)
endif()
if(QT_FEATURE_opengl AND TARGET Qt::Gui)
if(QT_FEATURE_opengl AND TARGET Qt6::Gui)
add_subdirectory(opengl)
endif()
if(QT_FEATURE_vulkan AND TARGET Qt::Gui)
if(QT_FEATURE_vulkan AND TARGET Qt6::Gui)
add_subdirectory(vulkan)
endif()

View File

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

View File

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

View File

@ -1,13 +1,13 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
if(NOT TARGET Qt::Widgets)
if(NOT TARGET Qt6::Widgets)
return()
endif()
if(QT_FEATURE_sharedmemory)
qt_internal_add_example(sharedmemory)
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(localfortuneclient)
endif()

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd.
# 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()
endif()
qt_internal_add_example(styleexample)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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