Skip to content

Commit

Permalink
Use version-less Qt targets and functions whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Aug 9, 2022
1 parent 177e4ef commit 271290b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions waylandshells/xdg-shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ init_target(lib_waylandshells_xdg_shell)
get_filename_component(src_loc . REALPATH)
set_target_properties(lib_waylandshells_xdg_shell PROPERTIES AUTOMOC ON)

if (DESKTOP_APP_QT6)
qt6_generate_wayland_protocol_client_sources(lib_waylandshells_xdg_shell
FILES
${third_party_loc}/wayland-protocols/stable/xdg-shell/xdg-shell.xml
${third_party_loc}/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml
${third_party_loc}/wayland-protocols/staging/xdg-activation/xdg-activation-v1.xml
)
else()
message(FATAL_ERROR "This piece of cmake code is not ported to Qt 5")
endif()
qt_generate_wayland_protocol_client_sources(lib_waylandshells_xdg_shell
FILES
${third_party_loc}/wayland-protocols/stable/xdg-shell/xdg-shell.xml
${third_party_loc}/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml
${third_party_loc}/wayland-protocols/staging/xdg-activation/xdg-activation-v1.xml
)

nice_target_sources(lib_waylandshells_xdg_shell ${src_loc}
PRIVATE
Expand Down

0 comments on commit 271290b

Please sign in to comment.