add an option "WITH_SYSTEMD", off by default
Signed-off-by: Kefu Chai <kchai@redhat.com>
if(WITH_MANPAGE)
add_subdirectory(man)
endif(WITH_MANPAGE)
+
+option(WITH_SYSTEMD "install systemd target and service files" OFF)
+if(WITH_SYSTEMD)
+ add_subdirectory(systemd)
+endif()
+
--- /dev/null
+install(FILES
+ ceph.target
+ ceph-osd.target
+ ceph-mon.target
+ ceph-mds.target
+ ceph-radosgw.target
+ ceph-rbd-mirror.target
+ ceph-mds@.service
+ ceph-mon@.service
+ ceph-create-keys@.service
+ ceph-osd@.service
+ ceph-radosgw@.service
+ ceph-rbd-mirror@.service
+ ceph-disk@.service
+ rbdmap.service
+ DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/systemd/system)