Skip to content

Commit

Permalink
Install library and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mgraesslin committed Sep 17, 2014
1 parent e9d8069 commit a11e260
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/client/CMakeLists.txt
Expand Up @@ -46,7 +46,39 @@ add_dependencies(KF5WaylandClient wayland-client-fullscreen-shell)
generate_export_header(KF5WaylandClient BASE_NAME KWaylandClient)
add_library(KF5::WaylandClient ALIAS KF5WaylandClient)

target_include_directories(KF5WaylandClient INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KWayland/Client>")

target_link_libraries(KF5WaylandClient
PUBLIC Qt5::Gui
PRIVATE Wayland::Client
)

if(IS_ABSOLUTE "${KF5_INCLUDE_INSTALL_DIR}")
target_include_directories(KF5WaylandClient INTERFACE "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}>" )
else()
target_include_directories(KF5WaylandClient INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/${KF5_INCLUDE_INSTALL_DIR}>" )
endif()

set_target_properties(KF5WaylandClient PROPERTIES VERSION ${KWAYLAND_VERSION_STRING}
SOVERSION ${KWAYLAND_SOVERSION}
EXPORT_NAME WaylandClient
)

install(TARGETS KF5WaylandClient EXPORT KF5WaylandTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/kwaylandclient_export.h
buffer.h
compositor.h
connection_thread.h
fullscreen_shell.h
keyboard.h
output.h
pointer.h
registry.h
seat.h
shell.h
shm_pool.h
surface.h
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KWayland/Client COMPONENT Devel
)
27 changes: 27 additions & 0 deletions src/server/CMakeLists.txt
Expand Up @@ -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 "$<INSTALL_INTERFACE:${KF5_INCLUDE_INSTALL_DIR}/KWayland/Server>")

target_link_libraries(KF5WaylandServer
PUBLIC Qt5::Gui
PRIVATE Wayland::Server
)

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
)

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
)

0 comments on commit a11e260

Please sign in to comment.