Spec-Zone.ru › Qt 5.15

qt5_generate_repc

Краткое описание

qt5_generate_repc(<VAR> rep_file output_type)

Описание

Создаёт правила для вызова repc на rep_file. output_type должно быть либо SOURCE или REPLICA. Пути сгенерированных файлов добавляются в <VAR>.

В зависимости от аргумента output_type, сгенерированный код будет реализовывать тип Qt Remote Objects Source или Qt Remote Objects Replica в C++.

Примеры

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)

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qtremoteobjects-cmake-qt5-generate-repc.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API