diff options
| author | Ashish Bansal <[email protected]> | 2015-04-22 18:59:39 +0530 |
|---|---|---|
| committer | Ashish Bansal <[email protected]> | 2015-04-22 18:59:39 +0530 |
| commit | 7042c6c2899a4e46a095a38ee1481b63ca4b96d8 (patch) | |
| tree | 9f4faa535285ec57cafa9ba6cf5173c089509f9d /cmake | |
| parent | 807230882b0d68d6b24849aa79d69fb4df7e813a (diff) | |
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
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/DbusInterfaceMacros.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
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 () |
