kdelibs/cmake/modules/MacroDBusAddActivationService.cmake
Ivailo Monev f69be2e2b4 cmake: import modules from kde-workspace
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-05 10:05:41 +02:00

9 lines
479 B
CMake

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)