grpc_cli: add info about cmake gRPC_BUILD_TESTS flag

To get grpc_cli make target generated with cmake, `gRPC_BUILD_TESTS` flag has to be defined. This is currently not specified in docs.
pull/22047/head
Tomasz Jonak 5 years ago committed by GitHub
parent 64fb7d4745
commit 0a023f64d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      doc/command_line_tool.md

@ -52,13 +52,26 @@ Mac systems with Homebrew:
brew install gflags
```
Once the prerequisites are satisfied, you can build the command line tool with
the command:
Once the prerequisites are satisfied, generate makefiles:
```
$ mkdir -p cmake/build
$ cd cmake/build
$ cmake -DgRPC_BUILD_TESTS=ON ../..
```
Finally you can build the command line tool with the command:
```
$ make grpc_cli
```
To speed up compilation time on linux, you can use make with following flag:
```
$ make grpc_cli -j$(nproc)
```
The main file can be found at
https://github.com/grpc/grpc/blob/master/test/cpp/util/grpc_cli.cc

Loading…
Cancel
Save