summaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-05-21 18:58:15 +0200
committerEugen Wissner <belka@caraus.de>2024-05-21 18:58:15 +0200
commit0eccfe3ef3ca602212667f339440d77c13d757b1 (patch)
tree7fe3f3cf865b57e85150b346e412c89bf4c97303 /data/CMakeLists.txt
parent81232f61046f3c571efea335f52680d6a603c8d7 (diff)
downloadslack-timedate-0eccfe3ef3ca602212667f339440d77c13d757b1.tar.gz
Split the data and sources
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
new file mode 100644
index 0000000..93c1f77
--- /dev/null
+++ b/data/CMakeLists.txt
@@ -0,0 +1,16 @@
+find_program(SED sed)
+
+add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/org.freedesktop.timedate1.service
+ COMMAND ${SED} -e s|@LIBEXECDIR@|${CMAKE_INSTALL_FULL_LIBEXECDIR}| ${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.timedate1.service.in > ${PROJECT_BINARY_DIR}/org.freedesktop.timedate1.service
+ MAIN_DEPENDENCY org.freedesktop.timedate1.service.in
+ VERBATIM)
+add_custom_target(service ALL DEPENDS ${PROJECT_BINARY_DIR}/org.freedesktop.timedate1.service)
+
+install(FILES org.freedesktop.timedate1.xml
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/interfaces)
+install(FILES org.freedesktop.timedate1.policy
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/polkit-1/actions)
+install(FILES org.freedesktop.timedate1.conf
+ DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/system.d)
+install(FILES ${PROJECT_BINARY_DIR}/org.freedesktop.timedate1.service
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/system-services)