summaryrefslogtreecommitdiff
path: root/examples/network
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-11-14 14:49:32 +0100
committerKai Köhne <kai.koehne@qt.io>2022-11-17 19:59:11 +0100
commitbec264c15fe07382009def3c4bbef3f3b689b6eb (patch)
tree2335b779fc09463522ff5356cd2c152ff64d603f /examples/network
parent9e251d44a79e171f093e89b21215d7372866ef4c (diff)
downloadqtbase-bec264c15fe07382009def3c4bbef3f3b689b6eb.tar.gz
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>
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/CMakeLists.txt12
-rw-r--r--examples/network/blockingfortuneclient/CMakeLists.txt8
-rw-r--r--examples/network/broadcastreceiver/CMakeLists.txt8
-rw-r--r--examples/network/broadcastsender/CMakeLists.txt8
-rw-r--r--examples/network/dnslookup/CMakeLists.txt4
-rw-r--r--examples/network/download/CMakeLists.txt4
-rw-r--r--examples/network/downloadmanager/CMakeLists.txt4
-rw-r--r--examples/network/fortuneclient/CMakeLists.txt8
-rw-r--r--examples/network/fortuneserver/CMakeLists.txt8
-rw-r--r--examples/network/googlesuggest/CMakeLists.txt8
-rw-r--r--examples/network/http/CMakeLists.txt8
-rw-r--r--examples/network/loopback/CMakeLists.txt8
-rw-r--r--examples/network/multicastreceiver/CMakeLists.txt8
-rw-r--r--examples/network/multicastsender/CMakeLists.txt8
-rw-r--r--examples/network/multistreamclient/CMakeLists.txt8
-rw-r--r--examples/network/multistreamserver/CMakeLists.txt8
-rw-r--r--examples/network/network-chat/CMakeLists.txt8
-rw-r--r--examples/network/securesocketclient/CMakeLists.txt8
-rw-r--r--examples/network/secureudpclient/CMakeLists.txt8
-rw-r--r--examples/network/secureudpserver/CMakeLists.txt8
-rw-r--r--examples/network/threadedfortuneserver/CMakeLists.txt8
-rw-r--r--examples/network/torrent/CMakeLists.txt8
22 files changed, 84 insertions, 84 deletions
diff --git a/examples/network/CMakeLists.txt b/examples/network/CMakeLists.txt
index 4dc0568c79..59a97cca89 100644
--- a/examples/network/CMakeLists.txt
+++ b/examples/network/CMakeLists.txt
@@ -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()
diff --git a/examples/network/blockingfortuneclient/CMakeLists.txt b/examples/network/blockingfortuneclient/CMakeLists.txt
index 698eefc723..cd4680c5db 100644
--- a/examples/network/blockingfortuneclient/CMakeLists.txt
+++ b/examples/network/blockingfortuneclient/CMakeLists.txt
@@ -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
diff --git a/examples/network/broadcastreceiver/CMakeLists.txt b/examples/network/broadcastreceiver/CMakeLists.txt
index 30a55ddba7..e5a445b4b7 100644
--- a/examples/network/broadcastreceiver/CMakeLists.txt
+++ b/examples/network/broadcastreceiver/CMakeLists.txt
@@ -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
diff --git a/examples/network/broadcastsender/CMakeLists.txt b/examples/network/broadcastsender/CMakeLists.txt
index 637fb34acc..3458425355 100644
--- a/examples/network/broadcastsender/CMakeLists.txt
+++ b/examples/network/broadcastsender/CMakeLists.txt
@@ -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
diff --git a/examples/network/dnslookup/CMakeLists.txt b/examples/network/dnslookup/CMakeLists.txt
index 3353066a32..92080dbc3f 100644
--- a/examples/network/dnslookup/CMakeLists.txt
+++ b/examples/network/dnslookup/CMakeLists.txt
@@ -19,8 +19,8 @@ qt_add_executable(dnslookup
)
target_link_libraries(dnslookup PUBLIC
- Qt::Core
- Qt::Network
+ Qt6::Core
+ Qt6::Network
)
install(TARGETS dnslookup
diff --git a/examples/network/download/CMakeLists.txt b/examples/network/download/CMakeLists.txt
index 4959ec4eae..12b50ab6a5 100644
--- a/examples/network/download/CMakeLists.txt
+++ b/examples/network/download/CMakeLists.txt
@@ -19,8 +19,8 @@ qt_add_executable(download
)
target_link_libraries(download PUBLIC
- Qt::Core
- Qt::Network
+ Qt6::Core
+ Qt6::Network
)
install(TARGETS download
diff --git a/examples/network/downloadmanager/CMakeLists.txt b/examples/network/downloadmanager/CMakeLists.txt
index ea0f2a0949..dfb4cd5c21 100644
--- a/examples/network/downloadmanager/CMakeLists.txt
+++ b/examples/network/downloadmanager/CMakeLists.txt
@@ -21,8 +21,8 @@ qt_add_executable(downloadmanager
)
target_link_libraries(downloadmanager PUBLIC
- Qt::Core
- Qt::Network
+ Qt6::Core
+ Qt6::Network
)
install(TARGETS downloadmanager
diff --git a/examples/network/fortuneclient/CMakeLists.txt b/examples/network/fortuneclient/CMakeLists.txt
index 1698da183e..253e529a91 100644
--- a/examples/network/fortuneclient/CMakeLists.txt
+++ b/examples/network/fortuneclient/CMakeLists.txt
@@ -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
diff --git a/examples/network/fortuneserver/CMakeLists.txt b/examples/network/fortuneserver/CMakeLists.txt
index 280b36c0dd..d387bd8e9a 100644
--- a/examples/network/fortuneserver/CMakeLists.txt
+++ b/examples/network/fortuneserver/CMakeLists.txt
@@ -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
diff --git a/examples/network/googlesuggest/CMakeLists.txt b/examples/network/googlesuggest/CMakeLists.txt
index e90bc9332d..7c6020d54a 100644
--- a/examples/network/googlesuggest/CMakeLists.txt
+++ b/examples/network/googlesuggest/CMakeLists.txt
@@ -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
diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt
index f84290917e..43a83b7d4a 100644
--- a/examples/network/http/CMakeLists.txt
+++ b/examples/network/http/CMakeLists.txt
@@ -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
diff --git a/examples/network/loopback/CMakeLists.txt b/examples/network/loopback/CMakeLists.txt
index 4152491946..5229430fed 100644
--- a/examples/network/loopback/CMakeLists.txt
+++ b/examples/network/loopback/CMakeLists.txt
@@ -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
diff --git a/examples/network/multicastreceiver/CMakeLists.txt b/examples/network/multicastreceiver/CMakeLists.txt
index 2b19e7c1b4..ca80b508e2 100644
--- a/examples/network/multicastreceiver/CMakeLists.txt
+++ b/examples/network/multicastreceiver/CMakeLists.txt
@@ -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
diff --git a/examples/network/multicastsender/CMakeLists.txt b/examples/network/multicastsender/CMakeLists.txt
index c762e8a8b5..879dc7af20 100644
--- a/examples/network/multicastsender/CMakeLists.txt
+++ b/examples/network/multicastsender/CMakeLists.txt
@@ -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
diff --git a/examples/network/multistreamclient/CMakeLists.txt b/examples/network/multistreamclient/CMakeLists.txt
index 3048b71d65..512c2364eb 100644
--- a/examples/network/multistreamclient/CMakeLists.txt
+++ b/examples/network/multistreamclient/CMakeLists.txt
@@ -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
diff --git a/examples/network/multistreamserver/CMakeLists.txt b/examples/network/multistreamserver/CMakeLists.txt
index 1cd592c321..8c0b432748 100644
--- a/examples/network/multistreamserver/CMakeLists.txt
+++ b/examples/network/multistreamserver/CMakeLists.txt
@@ -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
diff --git a/examples/network/network-chat/CMakeLists.txt b/examples/network/network-chat/CMakeLists.txt
index 8fc009cc5f..9ec480926e 100644
--- a/examples/network/network-chat/CMakeLists.txt
+++ b/examples/network/network-chat/CMakeLists.txt
@@ -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
diff --git a/examples/network/securesocketclient/CMakeLists.txt b/examples/network/securesocketclient/CMakeLists.txt
index 6dc56024b3..65b222a7b0 100644
--- a/examples/network/securesocketclient/CMakeLists.txt
+++ b/examples/network/securesocketclient/CMakeLists.txt
@@ -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:
diff --git a/examples/network/secureudpclient/CMakeLists.txt b/examples/network/secureudpclient/CMakeLists.txt
index 64803a211b..0098f8665d 100644
--- a/examples/network/secureudpclient/CMakeLists.txt
+++ b/examples/network/secureudpclient/CMakeLists.txt
@@ -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
diff --git a/examples/network/secureudpserver/CMakeLists.txt b/examples/network/secureudpserver/CMakeLists.txt
index 6b5698d3fd..a2e91f011b 100644
--- a/examples/network/secureudpserver/CMakeLists.txt
+++ b/examples/network/secureudpserver/CMakeLists.txt
@@ -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
diff --git a/examples/network/threadedfortuneserver/CMakeLists.txt b/examples/network/threadedfortuneserver/CMakeLists.txt
index ffc74c605c..8cefe0864c 100644
--- a/examples/network/threadedfortuneserver/CMakeLists.txt
+++ b/examples/network/threadedfortuneserver/CMakeLists.txt
@@ -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
diff --git a/examples/network/torrent/CMakeLists.txt b/examples/network/torrent/CMakeLists.txt
index f6f0998c56..cf042c9f67 100644
--- a/examples/network/torrent/CMakeLists.txt
+++ b/examples/network/torrent/CMakeLists.txt
@@ -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: