Protobuf generator and bindings for Qt framework
|
před 6 roky | |
---|---|---|
cmake | před 6 roky | |
src | před 6 roky | |
tests | před 6 roky | |
.gitignore | před 6 roky | |
CMakeLists.txt | před 6 roky | |
LICENSE | před 6 roky | |
README.md | před 6 roky |
Protobuf plugin to generate Qt classes
mkdir build
cd build
cmake [-DCMAKE_PREFIX_PATH=<PATH_TO_Qt5Config.cmake_OR_qt5-config.cmake>] ..
make -j<N>
mkdir build
cd build
cmake ..
cmake --build . --target qtprotobuf --config RELEASE
protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobuf --qtprotobuf_out=<output_dir> <protofile>.proto