摘要: 转自:chatgpt 1.介绍 find_package(Protobuf) 是 CMake 中用于查找和加载 Protocol Buffers 的模块。它的作用是在 CMake 配置过程中查找安装在系统中的 Protocol Buffers 库,并将相关信息存储在 CMake 变量中,以供后续的构 阅读全文
posted @ 2024-04-27 21:28 lypbendlf 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1.例子 message ProtoSrc { message Feature { repeated float data = 1; } Feature feature = 1; } int main(int argc, char const *argv[]) { auto src = ProtoS 阅读全文
posted @ 2024-04-27 20:38 lypbendlf 阅读(3) 评论(0) 推荐(0) 编辑