Protobuf generator and bindings for Qt framework
Viktor Kopp fee3fc7703 Avoid regeneration of grpc code if proto files were not changed | il y a 5 ans | |
---|---|---|
cmake | il y a 5 ans | |
examples | il y a 5 ans | |
src | il y a 5 ans | |
tests | il y a 5 ans | |
.gitignore | il y a 5 ans | |
CMakeLists.txt | il y a 5 ans | |
Doxyfile.in | il y a 5 ans | |
LICENSE | il y a 5 ans | |
ProjectConfig.cmake.in | il y a 5 ans | |
README.md | il y a 5 ans |
Protobuf plugin to generate Qt classes
mkdir build
cd build
cmake [-DCMAKE_PREFIX_PATH=<path/to/Qt5Config.cmake|path/to/qt5-config.cmake>] ..
make -j<N>
mkdir build
cd build
cmake ..
cmake --build . --target qtprotobuf --config RELEASE
protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobuf --qtprotobuf_out=<output_dir> <protofile>.proto [--qtprotobuf_opt=out=<output_dir>]