Fix Qt6 build of the xdgactivationtest
This commit is contained in:
parent
04509aaeb7
commit
6eb8d1bbf7
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue