2014-09-17 12:35:33 +00:00
|
|
|
set(SERVER_LIB_SRCS
|
|
|
|
buffer_interface.cpp
|
2014-11-17 15:01:18 +00:00
|
|
|
clientconnection.cpp
|
2014-09-17 12:35:33 +00:00
|
|
|
compositor_interface.cpp
|
2014-11-06 09:02:49 +00:00
|
|
|
datadevice_interface.cpp
|
2014-11-04 14:10:22 +00:00
|
|
|
datadevicemanager_interface.cpp
|
2014-11-06 15:56:50 +00:00
|
|
|
dataoffer_interface.cpp
|
2014-11-04 14:10:22 +00:00
|
|
|
datasource_interface.cpp
|
2014-09-17 12:35:33 +00:00
|
|
|
display.cpp
|
2014-11-13 14:07:31 +00:00
|
|
|
global.cpp
|
2014-11-25 12:39:24 +00:00
|
|
|
keyboard_interface.cpp
|
2015-01-20 08:42:26 +00:00
|
|
|
logging.cpp
|
2014-09-17 12:35:33 +00:00
|
|
|
output_interface.cpp
|
2014-11-25 12:52:40 +00:00
|
|
|
pointer_interface.cpp
|
2015-06-09 00:48:56 +00:00
|
|
|
plasmashell_interface.cpp
|
2015-06-09 22:56:31 +00:00
|
|
|
qtsurfaceextension_interface.cpp
|
2014-10-16 11:04:51 +00:00
|
|
|
region_interface.cpp
|
2014-11-14 08:45:02 +00:00
|
|
|
resource.cpp
|
2014-09-17 12:35:33 +00:00
|
|
|
seat_interface.cpp
|
|
|
|
shell_interface.cpp
|
|
|
|
surface_interface.cpp
|
2014-10-14 12:04:35 +00:00
|
|
|
subcompositor_interface.cpp
|
2015-03-25 12:31:38 +00:00
|
|
|
touch_interface.cpp
|
2014-09-17 12:35:33 +00:00
|
|
|
)
|
|
|
|
|
2015-06-09 00:48:56 +00:00
|
|
|
ecm_add_wayland_server_protocol(SERVER_LIB_SRCS
|
|
|
|
PROTOCOL ${KWAYLAND_SOURCE_DIR}/src/client/protocols/plasma-shell.xml
|
|
|
|
BASENAME plasma-shell
|
|
|
|
)
|
|
|
|
|
2015-06-09 22:56:31 +00:00
|
|
|
ecm_add_wayland_server_protocol(SERVER_LIB_SRCS
|
|
|
|
PROTOCOL ${KWAYLAND_SOURCE_DIR}/src/client/protocols/surface-extension.xml
|
|
|
|
BASENAME qt-surface-extension
|
|
|
|
)
|
|
|
|
|
2014-09-17 12:35:33 +00:00
|
|
|
add_library(KF5WaylandServer ${SERVER_LIB_SRCS})
|
2014-10-14 11:43:24 +00:00
|
|
|
generate_export_header(KF5WaylandServer
|
|
|
|
BASE_NAME
|
|
|
|
KWaylandServer
|
|
|
|
EXPORT_FILE_NAME
|
|
|
|
KWayland/Server/kwaylandserver_export.h
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2014-09-17 12:35:33 +00:00
|
|
|
add_library(KF5::WaylandServer ALIAS KF5WaylandServer)
|
|
|
|
|
2014-09-17 13:47:42 +00:00
|
|
|
target_include_directories(KF5WaylandServer INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KWayland/Server>")
|
|
|
|
|
2014-09-17 12:35:33 +00:00
|
|
|
target_link_libraries(KF5WaylandServer
|
|
|
|
PUBLIC Qt5::Gui
|
2015-03-03 08:43:30 +00:00
|
|
|
PRIVATE
|
|
|
|
Wayland::Server
|
|
|
|
EGL::EGL
|
2014-09-17 12:35:33 +00:00
|
|
|
)
|
2014-09-17 13:47:42 +00:00
|
|
|
|
|
|
|
if(IS_ABSOLUTE "${KF5_INCLUDE_INSTALL_DIR}")
|
|
|
|
target_include_directories(KF5WaylandServer INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}>" )
|
|
|
|
else()
|
|
|
|
target_include_directories(KF5WaylandServer INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/${KF5_INCLUDE_INSTALL_DIR}>" )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_target_properties(KF5WaylandServer PROPERTIES VERSION ${KWAYLAND_VERSION_STRING}
|
|
|
|
SOVERSION ${KWAYLAND_SOVERSION}
|
|
|
|
EXPORT_NAME WaylandServer
|
|
|
|
)
|
|
|
|
|
2014-11-27 17:26:33 +00:00
|
|
|
install(TARGETS KF5WaylandServer EXPORT KF5WaylandTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/KWayland/Server/kwaylandserver_export.h
|
|
|
|
buffer_interface.h
|
|
|
|
clientconnection.h
|
|
|
|
compositor_interface.h
|
|
|
|
datadevice_interface.h
|
|
|
|
datadevicemanager_interface.h
|
|
|
|
dataoffer_interface.h
|
|
|
|
datasource_interface.h
|
|
|
|
display.h
|
|
|
|
global.h
|
|
|
|
keyboard_interface.h
|
|
|
|
output_interface.h
|
|
|
|
pointer_interface.h
|
2015-06-09 00:48:56 +00:00
|
|
|
plasmashell_interface.h
|
2015-06-09 22:56:31 +00:00
|
|
|
qtsurfaceextension_interface.h
|
2014-11-27 17:26:33 +00:00
|
|
|
region_interface.h
|
|
|
|
resource.h
|
|
|
|
seat_interface.h
|
|
|
|
shell_interface.h
|
|
|
|
subcompositor_interface.h
|
|
|
|
surface_interface.h
|
2015-03-25 13:23:08 +00:00
|
|
|
touch_interface.h
|
2014-11-27 17:26:33 +00:00
|
|
|
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KWayland/Server COMPONENT Devel
|
|
|
|
)
|