qt5_generate_repc

Synopsis

qt5_generate_repc(<VAR> rep_file output_type)

Description

Creates rules for calling repc on rep_file. output_type must be either SOURCE or REPLICA. The paths of the generated files are added to <VAR>.

Depending on the output_type argument, the generated code will either implement a Qt Remote Objects Source or a Qt Remote Objects Replica type in C++.

Examples

find_package(Qt5 COMPONENTS RemoteObjects REQUIRED)

set(SOURCES
    main.cpp
    simpleswitch.cpp
)

qt5_generate_repc(SOURCES simpleswitch.rep SOURCE)

add_executable(directconnectserver ${SOURCES})
target_link_libraries(directconnectserver Qt5::RemoteObjects)

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.