if((NOT DEFINED CATBOOST_COMPONENTS) OR (APP IN_LIST CATBOOST_COMPONENTS) OR (app IN_LIST CATBOOST_COMPONENTS))


# This file was generated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, 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 ported back to the
# original buildsystem will not be accepted.


get_built_tool_path(
  TOOL_enum_parser_bin
  TOOL_enum_parser_dependency
  tools/enum_parser/enum_parser
  enum_parser
)

add_executable(catboost)
target_link_libraries(catboost PUBLIC
  contrib-libs-cxxsupp
  yutil
  library-cpp-cpuid_check
  catboost-libs-data
  catboost-libs-dataset_statistics
  catboost-libs-features_selection
  catboost-libs-helpers
  catboost-libs-logging
  catboost-libs-metrics
  catboost-libs-model
  libs-model-model_export
  catboost-libs-train_lib
  private-libs-algo
  private-libs-app_helpers
  private-libs-data_util
  private-libs-distributed
  private-libs-documents_importance
  private-libs-init
  private-libs-labels
  private-libs-options
  private-libs-target
  cpp-getopt-small
  library-cpp-json
  library-cpp-svnversion
  cpp-threading-local_executor
  tools-enum_parser-enum_serialization_runtime
)
target_sources(catboost PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/app/main.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_calc.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_dataset_statistics.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_eval_metrics.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_eval_feature.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_fit.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_fstr.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_metadata.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_model_based_eval.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_model_sum.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_normalize_model.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_ostr.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_roc.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_run_worker.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_select_features.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/mode_dump_options.cpp
  ${CMAKE_SOURCE_DIR}/catboost/app/signal_handling.cpp
)
generate_enum_serilization(catboost
  ${CMAKE_SOURCE_DIR}/catboost/app/model_metainfo_helpers.h
  INCLUDE_HEADERS
  catboost/app/model_metainfo_helpers.h
)
target_allocator(catboost
  system_allocator
)
vcs_info(catboost)

endif()

