From 7042c6c2899a4e46a095a38ee1481b63ca4b96d8 Mon Sep 17 00:00:00 2001 From: Ashish Bansal Date: Wed, 22 Apr 2015 18:59:39 +0530 Subject: Add dbus interface to dolphin Implemented org.freedesktop.FileManager1 dbus interface in dolphin http://www.freedesktop.org/wiki/Specifications/file-manager-interface/ REVIEW: 123313 BUG: 343016 --- cmake/DbusInterfaceMacros.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cmake/DbusInterfaceMacros.cmake (limited to 'cmake/DbusInterfaceMacros.cmake') diff --git a/cmake/DbusInterfaceMacros.cmake b/cmake/DbusInterfaceMacros.cmake new file mode 100644 index 000000000..0fd2f4c1f --- /dev/null +++ b/cmake/DbusInterfaceMacros.cmake @@ -0,0 +1,18 @@ +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( + ${output_xml_file} + 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} + ${output_xml_file} + ) +endmacro () -- cgit v1.3