EmbeddedProto
EmbeddedProto copied to clipboard
cmake: create integration for code generation
These changes make the protobuf code generation and build steps all managed by cmake, no additional steps are necessary. Dependent projects can
- add this as a subdirectory, or use FetchContent
- link to EmbeddedProto static library
- generate and include the protobuf headers (e.g. as done in the ./CMakeLists.txt file) with generate_embedded_proto
- define custom target, which depends on these headers, and add the dependency to your project