1 if (CLANGD_ENABLE_REMOTE)
2 generate_protos(clangdRemoteIndexProto "Index.proto")
3 generate_protos(clangdMonitoringServiceProto "MonitoringService.proto"
5 generate_protos(clangdRemoteIndexServiceProto "Service.proto"
8 # FIXME: Move this into generate_protos. Currently we only mention proto
9 # filename as a dependency, but linking requires target name.
10 target_link_libraries(clangdRemoteIndexServiceProto
12 clangdRemoteIndexProto
13 clangdMonitoringServiceProto
15 include_directories(${CMAKE_CURRENT_BINARY_DIR})
17 # FIXME(kirillbobyrev): target_compile_definitions is not working with
18 # add_clang_library for some reason. Is there any way to make this
20 add_definitions(-DGOOGLE_PROTOBUF_NO_RTTI=1)
22 add_clang_library(clangdRemoteIndex
26 clangdRemoteIndexProto
27 clangdRemoteIndexServiceProto
28 clangdRemoteMarshalling
34 clangdRemoteIndexProto
35 clangdRemoteIndexServiceProto
38 add_subdirectory(marshalling)
39 add_subdirectory(server)
40 add_subdirectory(monitor)
42 # Provides a no-op implementation of clangdRemoteIndex.
43 add_subdirectory(unimplemented)