Protobuf generator and bindings for Qt framework

Viktor Kopp fee3fc7703 Avoid regeneration of grpc code if proto files were not changed 5 vuotta sitten
cmake fee3fc7703 Avoid regeneration of grpc code if proto files were not changed 5 vuotta sitten
examples 0d475a3922 Introduce generated type registration helper 5 vuotta sitten
src 08f7c1c132 Wrap RegistrationHelper into qtprotobuf namespace 5 vuotta sitten
tests 0d475a3922 Introduce generated type registration helper 5 vuotta sitten
.gitignore 7495ae7751 Initial version of generator 5 vuotta sitten
CMakeLists.txt 22271804dc Component-aware cmake package 5 vuotta sitten
Doxyfile.in 8e66d1727c Doxygen for header byte encoder/decoder 5 vuotta sitten
LICENSE 3beab4ea24 Implement move semantic for generated classes, update copyrights. 5 vuotta sitten
ProjectConfig.cmake.in b289fe37b4 Fix cmake dependencies for file generation 5 vuotta sitten
README.md c2f174230e Update readme 5 vuotta sitten

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