Commit 6eb8d1bb authored by Volker Krause's avatar Volker Krause Committed by Merge Service
Browse files

Fix Qt6 build of the xdgactivationtest

parent 04509aae
Pipeline #172641 passed with stage
in 11 minutes and 55 seconds
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment