From 52fa6a321e53f466658be65d4ec22368cb8af9c0 Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Sun, 19 Jun 2022 18:45:24 +0300 Subject: [PATCH] Wayland protocols code generation for Qt5 --- Telegram/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index f97c09b1432ed0..665eb65cceab2c 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -1445,10 +1445,15 @@ 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(plasma_shell_protocol_srcs + PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/plasma-shell.xml + BASENAME plasma-shell + ) + target_sources(Telegram PRIVATE ${plasma_shell_protocol_srcs}) + target_include_directories(Telegram PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) endif() target_link_libraries(Telegram