20
## Upstart Config File
24
set (UPSTART_JOB_DIR "${CMAKE_INSTALL_FULL_DATADIR}/upstart/sessions")
25
message (STATUS "${UPSTART_JOB_DIR} is the Upstart Job install dir")
27
set (UPSTART_JOB_NAME "${CMAKE_PROJECT_NAME}.conf")
28
set (UPSTART_JOB_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_JOB_NAME}")
29
set (UPSTART_JOB_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_JOB_NAME}.in")
32
set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
33
configure_file ("${UPSTART_JOB_FILE_IN}" "${UPSTART_JOB_FILE}")
36
install (FILES "${UPSTART_JOB_FILE}"
37
DESTINATION "${UPSTART_JOB_DIR}")
41
## XDG Autostart Config File
45
set (XDG_AUTOSTART_DIR "/etc/xdg/autostart")
46
message (STATUS "${XDG_AUTOSTART_DIR} is the XDG Autostart install dir")
48
set (XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.desktop")
49
set (XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${XDG_AUTOSTART_NAME}")
50
set (XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${XDG_AUTOSTART_NAME}.in")
53
set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
54
configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}")
57
install (FILES "${XDG_AUTOSTART_FILE}"
58
DESTINATION "${XDG_AUTOSTART_DIR}")
22
set (DBUS_SERVICE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/dbus-1/services")
23
message (STATUS "${DBUS_SERVICE_DIR} is the DBus Service File install dir")
25
set (SERVICE_NAME "${CMAKE_PROJECT_NAME}.service")
26
set (SERVICE_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_NAME}")
27
set (SERVICE_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SERVICE_NAME}.in")
30
set (pkglibexecdir "${PROJECT_LIBEXECDIR}")
31
configure_file ("${SERVICE_FILE_IN}" "${SERVICE_FILE}")
34
install (FILES "${SERVICE_FILE}"
35
DESTINATION "${DBUS_SERVICE_DIR}")