
# This file was generated by the build system used internally in Yandex and called "ya"
# (https://github.com/yandex/yatool).
#
# Configuration files of ya build system are usually named ya.make. If ya.make file is present
# at the root of the repository, then this repository supports ya build. 
# 
# If the repository supports both CMake and ya build configurations, please modify both of them.
#
# If only CMake build configuration is supported then modify only CMake files and note that only
# simple modifications are allowed like adding source-files to targets or adding simple properties
# like target_include_directories. These modifications will be ported to original ya.make files
# by maintainers. Any complex modifications which can't be easily ported back to the ya build 
# system may be rejected.

add_subdirectory(ut)
add_library(catboost-libs-metrics)


target_link_libraries(catboost-libs-metrics PUBLIC
  contrib-libs-cxxsupp
  yutil
  private-libs-data_types
  catboost-libs-eval_result
  catboost-libs-helpers
  catboost-libs-logging
  private-libs-options
  libs-helpers-parallel_sort
  library-cpp-binsaver
  cpp-containers-2d_array
  cpp-containers-stack_vector
  library-cpp-dot_product
  cpp-threading-local_executor
)

target_sources(catboost-libs-metrics PRIVATE
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/auc.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/auc_mu.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/balanced_accuracy.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/brier_score.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/classification_utils.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/dcg.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/description_utils.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/hinge_loss.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/kappa.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/llp.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/metric.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/optimal_const_for_loss.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/pfound.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/precision_recall_at_k.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/sample.cpp
  ${PROJECT_SOURCE_DIR}/catboost/libs/metrics/caching_metric.cpp
)






