Simply run with the CMake. Its version must be 3.14 or later.
cmake_minimum_required(VERSION 3.14)
The project requires VcPkg. Expects 2019.08 release or later
$ vcpkg install --triplet x64-windows grpc catch2 ms-gsl
After the installation, run CMake with the CMAKE_TOOLCHAIN_FILE
.
$ cd /code/build
$ cmake .. -DCMAKE_TOOLCHAIN_FILE="/vcpkg/scripts/buildsystem/vcpkg.cmake"
$ cmake --build . --config debug
There are several CMake targets to support code generations. Each can be used like the following
$ cd /code/build
$ cmake --build . --target generate_grpc_files_cpp
Current codegen target list:
codegen_cpp
codegen_python
codegen_nodejs
codegen_csharp
codegen_go
Especially, Go requires additional setup to acquire code generator.
export GOPATH=$(pwd)
go get github.com/golang/protobuf/protoc-gen-go
Or, for PowerShell,
$env:GOPATH=Get-Location
go get github.com/golang/protobuf/protoc-gen-go
By doing this, 'bin/' folder will contain 'protoc-gen-go' executable.
CTest is enabled
TBA