aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/metrics/CMakeLists.txt
blob: 0f8487d84af80f23b78d47e850881d780675fcc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
add_library(cpp-monlib-metrics)
target_link_libraries(cpp-monlib-metrics PUBLIC
  contrib-libs-cxxsupp
  yutil
  tools-enum_parser-enum_serialization_runtime
)
target_sources(cpp-monlib-metrics PRIVATE
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/ewma.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/fake.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_explicit.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_exponential.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_linear.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_snapshot.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/log_histogram_snapshot.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/labels.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_registry.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_consumer.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_type.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_value.cpp
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/summary_snapshot.cpp
)
generate_enum_serilization(cpp-monlib-metrics
  ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_value_type.h
  GEN_HEADER
  ${CMAKE_BINARY_DIR}/library/cpp/monlib/metrics/metric_value_type.h_serialized.h
  INCLUDE_HEADERS
  library/cpp/monlib/metrics/metric_value_type.h
)