This command was introduced in Qt 6.2.
qt_reps_from_headers(<TARGET> header_files) qt6_reps_from_headers(<TARGET> header_files)
Generates corresponding .rep files from the existing QObject header_files.
qt6_reps_from_headers(directconnectexample
simpleswitch.h
)This will generate an interface file called simpleswitch.rep in the build directory.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qtremoteobjects-cmake-qt-rep-from-headers.html