|
|
@ -41,6 +41,7 @@ find_package(Protobuf CONFIG REQUIRED) |
|
|
|
find_package(gRPC CONFIG REQUIRED) |
|
|
|
|
|
|
|
include_directories(${grpc_build_dir}/include) |
|
|
|
link_directories(${grpc_build_dir}/lib) |
|
|
|
# local proto file |
|
|
|
set(PROTO_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bin_grpc") |
|
|
|
set(grpc_BINARY_DIR "${grpc_build_dir}/bin") |
|
|
@ -50,5 +51,5 @@ message(${BoldGreen} |
|
|
|
grpc_cpp_plugin:${grpc_BINARY_DIR}/grpc_cpp_plugin\n |
|
|
|
helloworld:${PROTO_DIR}/helloworld.proto${ColourReset}) |
|
|
|
|
|
|
|
list(APPEND third_party_libraries gRPC::grpc++ gRPC::grpc++_reflection libprotobuf) |
|
|
|
list(APPEND third_party_libraries grpc++ grpc++_reflection libprotobuf) |
|
|
|
|