如何在 linux 上通过 cmake 链接 google protobuf 库?
本文介绍了如何在 linux 上通过 cmake 链接 google protobuf 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在努力使其与我为提升所做的相同:
I'm trying to make it same way I made it for boost :
(在某处用谷歌搜索)但输出不好:
(googled it somewhere) but got bad output:
如何将其与 cmake 链接?或者我什至可以使用 cmake 编译 .proto 文件?
How can I link it with cmake? or maybe I even can compile .proto file using cmake?
推荐答案
你可以试试 CMake 的 FindProtobuf
模块:
You could try CMake's FindProtobuf
module:
有关更多信息,请运行
For further info, run
这篇关于如何在 linux 上通过 cmake 链接 google protobuf 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!