Hi, I am having the same problem. Did you manage to solve this problem?
On Monday, 2 November 2020 at 22:04:28 UTC [email protected] wrote: > I've also tried: > > # Generated Proto files > file(GLOB_RECURSE proto_files "${CMAKE_CURRENT_SOURCE_DIR}/*.proto") > PROTOBUF_GENERATE_CPP(proto_srcs proto_hdrs ${proto_files} PLUGIN > protoc-gen-grpc=${GRPC_PLUGIN}) > add_custom_target(proto_dep DEPENDS ${proto_srcs} ${proto_hdrs}) > message(STATUS "Generated source files are ${proto_srcs}") > > However, I do not see any .grpc.pb.cc files or know how to get the list > of them to add to compilation of my library with add_library. If I > understand the docs correctly, I have to compile the *.pb.cc files as well > as the *.grpc.pb.cc files. > > On Monday, November 2, 2020 at 4:04:15 PM UTC-5 Christopher Pisz wrote: > >> The gRPC examples show use of one proto file and one output file. >> However, I was supplied a protofile that imports another, which in turn >> imports several from another directory. >> >> Is the protoc supposed to produce headers and source files from the >> imported files? Or do you need to run the compiler on every single >> individual proto file? >> >> Does anyone have an example cmake, where the proto files import? > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5993b50c-c86f-45fe-856d-46aa7a4f0f66n%40googlegroups.com.
