Protobuf generator and bindings for Qt framework

Alexey Edelev 6418e88992 Add deserialization of QByteArray/QString lists 6 năm trước cách đây
cmake 886aea0236 [Unix][Test] Make gtest downloadable if is not globally 6 năm trước cách đây
src 6418e88992 Add deserialization of QByteArray/QString lists 6 năm trước cách đây
tests 6418e88992 Add deserialization of QByteArray/QString lists 6 năm trước cách đây
.gitignore 7495ae7751 Initial version of generator 6 năm trước cách đây
CMakeLists.txt 8985fbc5d0 Support unit test functionality for Windows. 6 năm trước cách đây
LICENSE 3beab4ea24 Implement move semantic for generated classes, update copyrights. 6 năm trước cách đây
README.md ff285fe8a8 Add instruction to build project in system with 6 năm trước cách đây

README.md

qtprotobuf

Protobuf plugin to generate Qt classes

Linux Build

mkdir build
cd build
cmake [-DCMAKE_PREFIX_PATH=<PATH_TO_Qt5Config.cmake_OR_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