How to build google protobuf environment with cmake on windows?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 13:33:04

I prefer to build 3rd party libraries as static libs in the build tree of my project.

I have created a cmake library to help with this. protobuf is one of the first libraries I have supported. The documentation is sparse so either feel free to ask questions or just learn from the code in the file cmake/require_protobuf.cmake

library is here: https://github.com/madmongo1/sanity

If you feel like contributing, I'd be grateful.

You will see that the script performs 2 builds. One to build protoc on the build machine, the next to build the protobuf libraries for the target machine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!