Protobuf generator and bindings for Qt framework
Viktor Kopp fee3fc7703 Avoid regeneration of grpc code if proto files were not changed | 5 سال پیش | |
---|---|---|
cmake | 5 سال پیش | |
examples | 5 سال پیش | |
src | 5 سال پیش | |
tests | 5 سال پیش | |
.gitignore | 5 سال پیش | |
CMakeLists.txt | 5 سال پیش | |
Doxyfile.in | 5 سال پیش | |
LICENSE | 5 سال پیش | |
ProjectConfig.cmake.in | 5 سال پیش | |
README.md | 5 سال پیش |
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>]