GithubHelp home page GithubHelp logo

exmpl-cmake-grpc's Introduction

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.

关联grpc库操作指南: 1、protoc --grpc_out=.\ --plugin=protoc-gen-grpc="grpc_cpp_plugin.exe" ./addressbook.proto protoc --cpp_out=.\address.proto 生成对应的文件 2、下载https://github.com/grpc/grpc库,需要用管理员权限打开VS,编译“INSTALL”项目,会在C:\Program Files\grpc生成对应的include头文件、lib库、dll库等; 3、使用本项目还需要关联protobuf库下的google文件夹的头文件

exmpl-cmake-grpc's People

Contributors

shaoxiang0427 avatar faaxm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.