ubus/systemd/CMakeLists.txt
Thomas Gstädtner 62cdfc3d16 add systemd support
This adds basic systemd support, incl. socket activation.
If systemd build is disabled, there won't be any sign of it neither
during build nor after.
If systemd build is enabled (default), but systemd is not available,
no systemd stuff is installed, so there is no impact whatsoever.
2013-03-04 19:11:21 +01:00

7 lines
354 B
CMake

CONFIGURE_FILE(ubus.socket.in ubus.socket)
CONFIGURE_FILE(ubus.service.in ubus.service)
# Cmakes pkgconfig support is very limited, so for now just hardcode
SET(SYSTEMD_SYSUNIT_DIR "${SYSTEMD_PREFIX}/lib/systemd/system")
INSTALL(FILES ${CMAKE_BINARY_DIR}/systemd/ubus.socket ${CMAKE_BINARY_DIR}/systemd/ubus.service
DESTINATION ${SYSTEMD_SYSUNIT_DIR})