This is just gRPCs C++ Hello World sample (see here), but instead of using plain makefiles, I'm using CMake. You need to have gRPC installed to make this run.
git clone https://github.com/jan-alexander/grpc-cpp-helloworld-cmake ~/grpc-cpp-helloworld-cmake
cd ~/grpc-cpp-helloworld-cmake
mkdir build && cd build
cmake ..
make