2015-04-22 13:29:39 +00:00
|
|
|
macro (generate_and_install_dbus_interface main_project_target header_file output_xml_file)
|
2022-01-14 07:04:01 +00:00
|
|
|
qt_generate_dbus_interface(
|
2015-04-22 13:29:39 +00:00
|
|
|
${header_file}
|
|
|
|
${output_xml_file}
|
|
|
|
)
|
|
|
|
add_custom_target(
|
2015-07-29 20:53:06 +00:00
|
|
|
${output_xml_file}_target
|
2015-04-22 13:29:39 +00:00
|
|
|
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
2019-05-12 11:09:39 +00:00
|
|
|
)
|
2015-04-22 13:29:39 +00:00
|
|
|
install(
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
2019-12-24 18:30:44 +00:00
|
|
|
DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}
|
2015-04-22 13:29:39 +00:00
|
|
|
)
|
|
|
|
add_dependencies(
|
|
|
|
${main_project_target}
|
2015-07-29 20:53:06 +00:00
|
|
|
${output_xml_file}_target
|
2015-04-22 13:29:39 +00:00
|
|
|
)
|
|
|
|
endmacro ()
|