Protobuf generator and bindings for Qt framework

Alexey Edelev 6c7ed31bd9 Change libraries cmake structure vor 5 Jahren
cmake 0526227908 Restore and improve build from protobuf/grpc sources vor 5 Jahren
examples 6c7ed31bd9 Change libraries cmake structure vor 5 Jahren
src 6c7ed31bd9 Change libraries cmake structure vor 5 Jahren
tests 79d8b83b48 Qtprotobuf test executable added to ctest vor 5 Jahren
.gitignore 7495ae7751 Initial version of generator vor 6 Jahren
CMakeLists.txt 6c7ed31bd9 Change libraries cmake structure vor 5 Jahren
LICENSE 3beab4ea24 Implement move semantic for generated classes, update copyrights. vor 6 Jahren
README.md c2f174230e Update readme vor 6 Jahren

README.md

qtprotobuf

Protobuf plugin to generate Qt classes

Linux Build

mkdir build
cd build
cmake [-DCMAKE_PREFIX_PATH=<path/to/Qt5Config.cmake|path/to/qt5-config.cmake>] ..
make -j<N>

Windows Build

mkdir build
cd build
cmake ..
cmake --build . --target qtprotobuf --config RELEASE

Usage

protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobuf --qtprotobuf_out=<output_dir> <protofile>.proto [--qtprotobuf_opt=out=<output_dir>]