2
0

CMakeLists.txt 520 B

1234567891011121314
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. if(WITH_OTLP_GRPC)
  4. add_executable(func_otlp_grpc func_grpc_main.cc)
  5. target_link_libraries(func_otlp_grpc ${CMAKE_THREAD_LIBS_INIT}
  6. opentelemetry_trace opentelemetry_exporter_otlp_grpc)
  7. endif()
  8. if(WITH_OTLP_HTTP)
  9. add_executable(func_otlp_http func_http_main.cc)
  10. target_link_libraries(func_otlp_http ${CMAKE_THREAD_LIBS_INIT}
  11. opentelemetry_trace opentelemetry_exporter_otlp_http)
  12. endif()