From 4723fc02f2e82fcd01b7d4a1ffa60f86c72f5246 Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Tue, 21 Jun 2022 15:54:49 +0300 Subject: [PATCH] Wayland protocols code generation for Qt5 Seek also for devendored protocol definitions. --- Telegram/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index f97c09b1432ed0..e7e98fccaa7f4b 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -1445,10 +1445,14 @@ else() if (DESKTOP_APP_QT6) qt6_generate_wayland_protocol_client_sources(Telegram FILES - ${third_party_loc}/plasma-wayland-protocols/src/protocols/plasma-shell.xml + ${PLASMA_WAYLAND_PROTOCOLS_DIR}/plasma-shell.xml ) else() - message(FATAL_ERROR "This piece of cmake code is not ported to Qt 5") + ecm_add_qtwayland_client_protocol(Telegram + PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/plasma-shell.xml + BASENAME plasma-shell + ) + target_include_directories(Telegram PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) endif() target_link_libraries(Telegram