Link Wayland::Server as an external dependency

Raw wl_ objects are used throughout the public headers repeatedly.

Exporting the linked library helps clients (kwin) build cleanly.
This commit is contained in:
David Edmundson 2020-09-02 17:04:52 +01:00
parent aebae46fe6
commit 63d2ab4ee6
2 changed files with 4 additions and 2 deletions

View file

@ -345,9 +345,10 @@ ecm_generate_export_header(KWaylandServer
target_include_directories(KWaylandServer INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}>")
target_link_libraries(KWaylandServer
PUBLIC Qt5::Gui
PRIVATE
PUBLIC
Qt5::Gui
Wayland::Server
PRIVATE
EGL::EGL
Qt5::Concurrent
)

View file

@ -12,6 +12,7 @@
#include <QSharedPointer>
#include <functional>
#include <KWaylandServer/kwaylandserver_export.h>
#include <wayland-server.h>
struct wl_resource;