From 8fee17fc79454f36f97fc8c97e05154732a7a930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 17 Sep 2014 15:47:42 +0200 Subject: [PATCH] Install library and headers --- src/wayland/CMakeLists.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/wayland/CMakeLists.txt b/src/wayland/CMakeLists.txt index f1201b4fd7..7f8629f982 100644 --- a/src/wayland/CMakeLists.txt +++ b/src/wayland/CMakeLists.txt @@ -12,7 +12,34 @@ add_library(KF5WaylandServer ${SERVER_LIB_SRCS}) generate_export_header(KF5WaylandServer BASE_NAME KWaylandServer) add_library(KF5::WaylandServer ALIAS KF5WaylandServer) +target_include_directories(KF5WaylandServer INTERFACE "$") + target_link_libraries(KF5WaylandServer PUBLIC Qt5::Gui PRIVATE Wayland::Server ) + +if(IS_ABSOLUTE "${KF5_INCLUDE_INSTALL_DIR}") + target_include_directories(KF5WaylandServer INTERFACE "$" ) +else() + target_include_directories(KF5WaylandServer INTERFACE "$" ) +endif() + +set_target_properties(KF5WaylandServer PROPERTIES VERSION ${KWAYLAND_VERSION_STRING} + SOVERSION ${KWAYLAND_SOVERSION} + EXPORT_NAME WaylandServer +) + +install(TARGETS KF5WaylandServer EXPORT KF5WaylandTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) + +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/kwaylandserver_export.h + buffer_interface.h + compositor_interface.h + display.h + output_interface.h + seat_interface.h + shell_interface.h + surface_interface.h + DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KWayland/Server COMPONENT Devel +)