slack-timedate/data/CMakeLists.txt
Eugen Wissner 0eccfe3ef3
All checks were successful
Build / build (push) Successful in 16s
Split the data and sources
2024-05-21 18:58:15 +02:00

17 lines
896 B
CMake

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)