Protobuf generator and bindings for Qt framework

Alexey Edelev bc7cce5265 Implement enum serialization преди 6 години
cmake 10e4ce59a0 Additional cleaning of CMakeLists.txt преди 6 години
src bc7cce5265 Implement enum serialization преди 6 години
tests bc7cce5265 Implement enum serialization преди 6 години
.gitignore 7495ae7751 Initial version of generator преди 6 години
CMakeLists.txt 300f33195e Move test śources generation to test CMakeList преди 6 години
LICENSE 3beab4ea24 Implement move semantic for generated classes, update copyrights. преди 6 години
README.md ff285fe8a8 Add instruction to build project in system with преди 6 години

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