Fix Qt6 build of the xdgactivationtest

This commit is contained in:
Volker Krause 2022-05-02 21:39:43 +02:00 committed by Merge Service
parent 04509aaeb7
commit 6eb8d1bbf7

View file

@ -1,5 +1,6 @@
find_package(Qt5 REQUIRED COMPONENTS WaylandClient)
find_package(Qt6 OPTIONAL_COMPONENTS Widgets)
if (QT_MAJOR_VERSION EQUAL "5")
find_package(Qt5 REQUIRED COMPONENTS WaylandClient)
endif()
if (XCB_ICCCM_FOUND)
set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp)
@ -40,9 +41,9 @@ target_link_libraries(cursorhotspottest Qt::Widgets)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(xdgactivationtest-qt5 xdgactivationtest-qt5.cpp)
target_link_libraries(xdgactivationtest-qt5 Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate Wayland::Client)
if (QT_MAJOR_VERSION EQUAL "5")
add_executable(xdgactivationtest-qt5 xdgactivationtest-qt5.cpp)
target_link_libraries(xdgactivationtest-qt5 Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate Wayland::Client)
ecm_add_qtwayland_client_protocol(xdgactivationtest-qt5
PROTOCOL ${WaylandProtocols_DATADIR}/staging/xdg-activation/xdg-activation-v1.xml
BASENAME xdg-activation-v1