[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / clang / cmake / modules / AddGRPC.cmake
blob8989bd757d2474bbec7aa155cf425bdeb351c958
1 include(FindGRPC)
3 function(generate_clang_protos_library LibraryName ProtoFile)
4   # Take the first two args and forward the remaining to generate_proto_sources.
5   cmake_parse_arguments(PARSE_ARGV 2 PROTO "" "" "")
6   generate_proto_sources(ProtoSource ${ProtoFile} ${PROTO_UNPARSED_ARGUMENTS})
8   add_clang_library(${LibraryName} ${ProtoSource}
9     PARTIAL_SOURCES_INTENDED
10     LINK_LIBS PUBLIC grpc++ protobuf)
11 endfunction()