File: MacroDBusAddActivationService.cmake

package info (click to toggle)
apper 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,164 kB
  • sloc: cpp: 14,382; xml: 970; makefile: 13; sh: 4
file content (9 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
macro(dbus_add_activation_service _sources)
    foreach (_i ${_sources})
        get_filename_component(_service_file ${_i} ABSOLUTE)
        string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})
        set(_target ${CMAKE_CURRENT_BINARY_DIR}/${_output_file})
        configure_file(${_service_file} ${_target})
        install(FILES ${_target} DESTINATION ${CMAKE_INSTALL_DBUSSERVICEDIR} )
    endforeach (_i ${ARGN})
endmacro(dbus_add_activation_service _sources)