cmake: clean up installation rules

This commit is contained in:
Ben Boeckel 2015-11-12 21:37:35 -05:00
parent f8ae8cb820
commit 98678dea5d
2 changed files with 20 additions and 20 deletions

View file

@ -60,15 +60,14 @@ target_link_libraries(sway
${JSONC_LIBRARIES} ${JSONC_LIBRARIES}
) )
INSTALL( install(
TARGETS sway TARGETS sway
RUNTIME DESTINATION bin RUNTIME DESTINATION bin
) COMPONENT runtime)
install(
INSTALL( FILES "${CMAKE_CURRENT_SOURCE_DIR}/config"
FILES ${PROJECT_SOURCE_DIR}/config
DESTINATION /etc/sway/ DESTINATION /etc/sway/
) COMPONENT configuration)
add_custom_target(man ALL) add_custom_target(man ALL)
@ -99,10 +98,11 @@ endfunction ()
add_manpage(sway 1) add_manpage(sway 1)
add_manpage(sway 5) add_manpage(sway 5)
INSTALL( install(
FILES ${PROJECT_SOURCE_DIR}/sway.desktop FILES "${CMAKE_CURRENT_SOURCE_DIR}/sway.desktop"
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/wayland-sessions/) DESTINATION share/wayland-sessions
COMPONENT data)
INSTALL( install(
FILES ${PROJECT_SOURCE_DIR}/sway-xorg.desktop FILES "${CMAKE_CURRENT_SOURCE_DIR}/sway-xorg.desktop"
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/xsessions/) DESTINATION share/xsessions
COMPONENT data)

View file

@ -26,7 +26,7 @@ add_executable(swaybg
TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES}) TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES})
INSTALL( install(
TARGETS swaybg TARGETS swaybg
RUNTIME DESTINATION bin RUNTIME DESTINATION bin
) COMPONENT runtime)