Skip to content

faaxm/exmpl-cmake-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and Test - Fixed Dependencies

Build and Test - Latest Dependencies (might indicate a bug in dependencies)

Protobuf/GRPC with CMake Example

This is a basic example of a CMake project using Protobuf together with gRPC in C++.

For some background info, have a look at this blog post explaining how to structure gRPC projects with CMake.

gRPC Reflection

Reflection can be enabled by linking agains gRPC::grpc++_reflection, enabling support for the grpc_cli tool.

If this project is linked with a static version of the grpc library from vcpkg the -Wl,--whole-archive flag has to be used. (together with --allow-multiple-definition). When linking dynamically, you will want to link the reflection library with --no-as-needed.

About

Example cmake project for grpc / protobuf

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published