Protobuf generator and bindings for Qt framework

Viktor Kopp 7a7018e02e Generate sources and build echo-server 5 سال پیش
cmake 7a7018e02e Generate sources and build echo-server 5 سال پیش
examples d475121e5a Simplify credentials implementation 5 سال پیش
src d475121e5a Simplify credentials implementation 5 سال پیش
tests 7a7018e02e Generate sources and build echo-server 5 سال پیش
.gitignore 7495ae7751 Initial version of generator 6 سال پیش
CMakeLists.txt 7a7018e02e Generate sources and build echo-server 5 سال پیش
LICENSE 3beab4ea24 Implement move semantic for generated classes, update copyrights. 6 سال پیش
README.md c2f174230e Update readme 6 سال پیش

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>]