I would like to use the protobuf_generate_python
CMake function (see here) to generate some python files from my .protos
.
I only have the downloaded protoc
-binary and the includes available (no protobuf installation in the build system and also no complete protobuf compile from scratch, as it increases the build time drastically).
protoc
is of course enough to compile the .protos
, however the necessary find_package(Protobuf REQUIRED)
fails in CMake as protobuf is not available.
Is there a way to use the handy protobuf_generate_python
with only protoc and includes being available?
6