From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/currency/CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/currency/CMakeLists.txt (limited to 'src/currency/CMakeLists.txt') diff --git a/src/currency/CMakeLists.txt b/src/currency/CMakeLists.txt new file mode 100644 index 0000000..36c8858 --- /dev/null +++ b/src/currency/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 3.26) +project(currency) + +find_package(Protobuf REQUIRED) +find_package(gRPC CONFIG REQUIRED) +find_package(opentelemetry-cpp CONFIG REQUIRED) + +set(GENERATED_PROTOBUF_PATH "${CMAKE_BINARY_DIR}/generated/proto") + +add_subdirectory(genproto) + +include_directories("${GENERATED_PROTOBUF_PATH}" "${OPENTELEMETRY_CPP_INCLUDE_DIRS}") + +add_executable(currency src/server.cpp) +add_dependencies(currency demo-proto) +target_link_libraries( + currency demo-proto protobuf::libprotobuf + ${OPENTELEMETRY_CPP_LIBRARIES} opentelemetry_trace opentelemetry_common + opentelemetry_exporter_otlp_grpc opentelemetry_exporter_otlp_grpc_client + opentelemetry_proto opentelemetry_otlp_recordable opentelemetry_resources + opentelemetry_metrics opentelemetry_exporter_otlp_grpc_metrics gRPC::grpc++) + +install(TARGETS currency DESTINATION bin) -- cgit v1.2.3