Protobuf generator and bindings for Qt framework

Alexey Edelev 6d2f2e3cb8 Modify test for invalid field index 5 tahun lalu
cmake e0ad28c8e1 Few fixes in build files 5 tahun lalu
examples e0ad28c8e1 Few fixes in build files 5 tahun lalu
src 5427b51452 Minor fixes of doxygen description 5 tahun lalu
tests 6d2f2e3cb8 Modify test for invalid field index 5 tahun lalu
.gitignore 7495ae7751 Initial version of generator 6 tahun lalu
CMakeLists.txt f8ec65b184 Make separate qttools target common for samples 5 tahun lalu
Doxyfile.in 8e66d1727c Doxygen for header byte encoder/decoder 5 tahun lalu
LICENSE 3beab4ea24 Implement move semantic for generated classes, update copyrights. 6 tahun lalu
README.md c2f174230e Update readme 6 tahun lalu

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