2015-04-22 13:29:39 +00:00
|
|
|
macro (generate_and_install_dbus_interface main_project_target header_file output_xml_file)
|
|
|
|
qt5_generate_dbus_interface(
|
|
|
|
${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}
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
|
|
|
DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
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 ()
|