Generates a D-Bus interface from a header file.
命令的定义在
DBus
组件对于
Qt6
package. Load the package with:
find_package(Qt6 REQUIRED COMPONENTS DBus)
该命令在 Qt 6.0 引入。
qt_generate_dbus_interface(header [customName] [OPTIONS options] )
若
无版本命令
被禁用,使用
qt6_generate_dbus_interface()
代替。它支持如此命令的一组相同自变量。
Parses the C++ source or header file containing a QObject -derived class declaration and generates a file containing the D-BUS Introspection XML.
By default, the generated XML file is stored in the current binary directory, and has the same base name as the header. You can specify a different name or path by adding
customName
as an optional second argument.
The function sets up a call to the
qdbuscpp2xml
command line tool. Further arguments to the tool can be set after
选项
.