kdelibs/cmake/modules/MacroDBusAddActivationService.cmake

10 lines
479 B
CMake
Raw Normal View History

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 ${DBUS_SERVICES_INSTALL_DIR} )
endforeach (_i ${ARGN})
endmacro(dbus_add_activation_service _sources)