这里使用protobuf_generate_cpp命令将foo.proto文件生成源码,使用PROTO_SRC,PROTO_HARS变量分别指代生成的cpp和h文件并可用于连接到target和设置include 不过这种方法有两个缺点: 要求protobuf_generate_cpp命令和生成add_executable()或add_library()的命令必须在同一个CMake
状态代码为%1EN我正在尝试生成grpc cpp文件,但在cmake中调用生成器插件时它失败了局部状态:根据官方的...
I use protobuf_generate_grpc_cpp in my CMakeList.txt file to trigger generating the protobuf file. But it does nothing. What did you expect to see? For my file to be built into .cc files What did you see instead? This is what I get when generating my makefile -- Failed to find...