Skip to content

Commit

Permalink
Wayland protocols code generation for Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
mymedia2 committed Jun 19, 2022
1 parent 45caa25 commit 52fa6a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Telegram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52fa6a3

Please sign in to comment.