2013-08-13 22:23:32 +01:00
|
|
|
macro (generate_and_install_dbus_interface main_project_target header_file output_xml_file) #OPTIONS qdbus_options
|
2014-06-16 19:02:07 +01:00
|
|
|
# qt5_extract_options(
|
|
|
|
# extra_files_ignore
|
|
|
|
# qdbus_options
|
|
|
|
# ${ARGN}
|
|
|
|
# )
|
|
|
|
qt5_generate_dbus_interface(
|
2013-08-13 22:23:32 +01:00
|
|
|
${header_file}
|
|
|
|
${output_xml_file}
|
2014-06-16 19:02:07 +01:00
|
|
|
# OPTIONS ${qdbus_options}
|
2013-08-13 22:23:32 +01:00
|
|
|
)
|
|
|
|
add_custom_target(
|
|
|
|
${output_xml_file}
|
|
|
|
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
2015-03-12 11:42:10 +00:00
|
|
|
)
|
|
|
|
# don't install until API is stable
|
|
|
|
# install(
|
|
|
|
# FILES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
|
|
|
|
# DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
|
|
|
|
# )
|
2013-08-13 22:23:32 +01:00
|
|
|
add_dependencies(
|
|
|
|
${main_project_target}
|
|
|
|
${output_xml_file}
|
|
|
|
)
|
2014-06-16 19:02:07 +01:00
|
|
|
endmacro ()
|