2014-09-17 12:35:33 +00:00
|
|
|
set(SERVER_LIB_SRCS
|
|
|
|
buffer_interface.cpp
|
|
|
|
compositor_interface.cpp
|
|
|
|
display.cpp
|
|
|
|
output_interface.cpp
|
|
|
|
seat_interface.cpp
|
|
|
|
shell_interface.cpp
|
|
|
|
surface_interface.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(KF5WaylandServer ${SERVER_LIB_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
generate_export_header(KF5WaylandServer BASE_NAME KWaylandServer)
|
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
|
|
|
|
PRIVATE Wayland::Server
|
|
|
|
)
|
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-09-19 07:46:55 +00:00
|
|
|
# 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
|
|
|
|
# )
|