mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-25 03:12:49 +00:00
9 lines
479 B
CMake
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)
|