File: MacroDBusAddActivationService.cmake

package info (click to toggle)
apper 0.9.2%2Bgit20161222-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,660 kB
  • sloc: cpp: 14,726; xml: 897; makefile: 27; sh: 4
file content (9 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (5)
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)