From 7d1e74b5147f411d30f2d76420ba62737ec93ab9 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 19 Mar 2023 01:48:29 +0100 Subject: Support installing QXmpp with Qt 5 and Qt 6 in parallel Closes #540. --- examples/CMakeLists.txt | 2 +- examples/example_5_rpcInterface/CMakeLists.txt | 2 +- examples/example_6_rpcClient/CMakeLists.txt | 2 +- examples/example_9_vCard/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 0a1de8a2..8f83ce27 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -4,7 +4,7 @@ macro(add_simple_example EXAMPLE_NAME) add_executable(${EXAMPLE_NAME} example_${EXAMPLE_NAME}/example_${EXAMPLE_NAME}.cpp) - target_link_libraries(${EXAMPLE_NAME} qxmpp) + target_link_libraries(${EXAMPLE_NAME} ${QXMPP_TARGET}) endmacro() include_directories(${PROJECT_SOURCE_DIR}/src/base) diff --git a/examples/example_5_rpcInterface/CMakeLists.txt b/examples/example_5_rpcInterface/CMakeLists.txt index c58fdc40..b18299ad 100644 --- a/examples/example_5_rpcInterface/CMakeLists.txt +++ b/examples/example_5_rpcInterface/CMakeLists.txt @@ -3,4 +3,4 @@ # SPDX-License-Identifier: CC0-1.0 add_executable(5_rpcInterface main.cpp remoteinterface.cpp) -target_link_libraries(5_rpcInterface qxmpp) +target_link_libraries(5_rpcInterface ${QXMPP_TARGET}) diff --git a/examples/example_6_rpcClient/CMakeLists.txt b/examples/example_6_rpcClient/CMakeLists.txt index 2c19a92c..8ad4de2e 100644 --- a/examples/example_6_rpcClient/CMakeLists.txt +++ b/examples/example_6_rpcClient/CMakeLists.txt @@ -3,4 +3,4 @@ # SPDX-License-Identifier: CC0-1.0 add_executable(6_rpcClient main.cpp rpcClient.cpp) -target_link_libraries(6_rpcClient qxmpp) +target_link_libraries(6_rpcClient ${QXMPP_TARGET}) diff --git a/examples/example_9_vCard/CMakeLists.txt b/examples/example_9_vCard/CMakeLists.txt index 2fc4ba63..d187f9f6 100644 --- a/examples/example_9_vCard/CMakeLists.txt +++ b/examples/example_9_vCard/CMakeLists.txt @@ -5,4 +5,4 @@ find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui) add_executable(9_vCard example_9_vCard.cpp) -target_link_libraries(9_vCard Qt${QT_VERSION_MAJOR}::Gui qxmpp) +target_link_libraries(9_vCard Qt${QT_VERSION_MAJOR}::Gui ${QXMPP_TARGET}) -- cgit v1.2.3