aboutsummaryrefslogtreecommitdiff
path: root/examples/example_9_vCard
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-07-02 18:58:43 +0200
committerLNJ <lnj@kaidan.im>2020-07-03 13:13:31 +0200
commit8d6f865a9e312d3b4f686ff99af6e7fe9e8c5b13 (patch)
tree01d2942a5d91400c5233d67aa347585b5d6b2731 /examples/example_9_vCard
parent3dd3cb24f419b1a1cac2b7a0121507fd86000986 (diff)
downloadqxmpp-8d6f865a9e312d3b4f686ff99af6e7fe9e8c5b13.tar.gz
Introduce Qt 6 compatibility
Diffstat (limited to 'examples/example_9_vCard')
-rw-r--r--examples/example_9_vCard/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/example_9_vCard/CMakeLists.txt b/examples/example_9_vCard/CMakeLists.txt
index 8b4a95c9..f21139b9 100644
--- a/examples/example_9_vCard/CMakeLists.txt
+++ b/examples/example_9_vCard/CMakeLists.txt
@@ -1,4 +1,7 @@
-find_package(Qt5 REQUIRED COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Gui)
+if(NOT Qt6_FOUND)
+ find_package(Qt5 REQUIRED Gui)
+endif()
add_executable(9_vCard example_9_vCard.cpp)
-target_link_libraries(9_vCard Qt5::Gui qxmpp)
+target_link_libraries(9_vCard ${QT_TARGET}::Gui qxmpp)