diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-11-14 14:49:32 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-11-17 19:59:11 +0100 |
commit | bec264c15fe07382009def3c4bbef3f3b689b6eb (patch) | |
tree | 2335b779fc09463522ff5356cd2c152ff64d603f /examples/xml | |
parent | 9e251d44a79e171f093e89b21215d7372866ef4c (diff) |
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/xml')
-rw-r--r-- | examples/xml/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/xml/dombookmarks/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/xml/htmlinfo/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/xml/rsslisting/CMakeLists.txt | 10 | ||||
-rw-r--r-- | examples/xml/streambookmarks/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/xml/xmlstreamlint/CMakeLists.txt | 4 |
6 files changed, 18 insertions, 18 deletions
diff --git a/examples/xml/CMakeLists.txt b/examples/xml/CMakeLists.txt index bf2ad14e56..f9dadb1455 100644 --- a/examples/xml/CMakeLists.txt +++ b/examples/xml/CMakeLists.txt @@ -3,10 +3,10 @@ qt_internal_add_example(htmlinfo) qt_internal_add_example(xmlstreamlint) -if(TARGET Qt::Widgets) +if(TARGET Qt6::Widgets) qt_internal_add_example(dombookmarks) qt_internal_add_example(streambookmarks) endif() -if(TARGET Qt::Network AND TARGET Qt::Widgets) +if(TARGET Qt6::Network AND TARGET Qt6::Widgets) qt_internal_add_example(rsslisting) endif() diff --git a/examples/xml/dombookmarks/CMakeLists.txt b/examples/xml/dombookmarks/CMakeLists.txt index 5d94dc6131..38398bbaa5 100644 --- a/examples/xml/dombookmarks/CMakeLists.txt +++ b/examples/xml/dombookmarks/CMakeLists.txt @@ -26,10 +26,10 @@ set_target_properties(dombookmarks PROPERTIES ) target_link_libraries(dombookmarks PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets - Qt::Xml + Qt6::Core + Qt6::Gui + Qt6::Widgets + Qt6::Xml ) install(TARGETS dombookmarks diff --git a/examples/xml/htmlinfo/CMakeLists.txt b/examples/xml/htmlinfo/CMakeLists.txt index 3035a3846e..2a9925f4d8 100644 --- a/examples/xml/htmlinfo/CMakeLists.txt +++ b/examples/xml/htmlinfo/CMakeLists.txt @@ -24,7 +24,7 @@ set_target_properties(htmlinfo PROPERTIES ) target_link_libraries(htmlinfo PUBLIC - Qt::Core + Qt6::Core ) # Resources: diff --git a/examples/xml/rsslisting/CMakeLists.txt b/examples/xml/rsslisting/CMakeLists.txt index 025978437b..6a6ea973e5 100644 --- a/examples/xml/rsslisting/CMakeLists.txt +++ b/examples/xml/rsslisting/CMakeLists.txt @@ -25,11 +25,11 @@ set_target_properties(rsslisting PROPERTIES ) target_link_libraries(rsslisting PUBLIC - Qt::Core - Qt::Gui - Qt::Network - Qt::Widgets - Qt::Xml + Qt6::Core + Qt6::Gui + Qt6::Network + Qt6::Widgets + Qt6::Xml ) install(TARGETS rsslisting diff --git a/examples/xml/streambookmarks/CMakeLists.txt b/examples/xml/streambookmarks/CMakeLists.txt index beb1eb26d5..bea45d766c 100644 --- a/examples/xml/streambookmarks/CMakeLists.txt +++ b/examples/xml/streambookmarks/CMakeLists.txt @@ -27,10 +27,10 @@ set_target_properties(streambookmarks PROPERTIES ) target_link_libraries(streambookmarks PUBLIC - Qt::Core - Qt::Gui - Qt::Widgets - Qt::Xml + Qt6::Core + Qt6::Gui + Qt6::Widgets + Qt6::Xml ) install(TARGETS streambookmarks diff --git a/examples/xml/xmlstreamlint/CMakeLists.txt b/examples/xml/xmlstreamlint/CMakeLists.txt index 1a29901e0b..2b0a2a908f 100644 --- a/examples/xml/xmlstreamlint/CMakeLists.txt +++ b/examples/xml/xmlstreamlint/CMakeLists.txt @@ -24,8 +24,8 @@ set_target_properties(xmlstreamlint PROPERTIES ) target_link_libraries(xmlstreamlint PUBLIC - Qt::Core - Qt::Xml + Qt6::Core + Qt6::Xml ) install(TARGETS xmlstreamlint |