]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/CMakeLists.txt
Add dbus interface to dolphin
[dolphin.git] / src / CMakeLists.txt
index 89a4e431c46e1f26ab4250420e8a63f04f106f02..560545aed687c081fef50cf9fa5afa212ee0fb18 100644 (file)
@@ -247,6 +247,8 @@ set(dolphin_SRCS
     statusbar/statusbarspaceinfo.cpp
     views/zoomlevelinfo.cpp
     dolphindebug.cpp
+    dbusinterface.cpp
+    global.cpp
 )
 
 kconfig_add_kcfg_files(dolphin_SRCS GENERATE_MOC
@@ -291,6 +293,15 @@ if (KF5Activities_FOUND)
     )
 endif()
 
+include(DbusInterfaceMacros)
+
+generate_and_install_dbus_interface(
+    kdeinit_dolphin
+    dbusinterface.h
+    org.freedesktop.FileManager1.xml
+    OPTIONS -a
+)
+
 install(TARGETS kdeinit_dolphin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
 install(TARGETS dolphin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})