# This file was generated by the YaTool build system (https://github.com/yandex/yatool),
# from a source YaTool build configuration provided in ya.make files.
#
# 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.
#
# Please refer to the build instructions in the repository for more information about manual
# changes in this file.
if((NOT DEFINED CATBOOST_COMPONENTS) OR (LIBS IN_LIST CATBOOST_COMPONENTS) OR (libs IN_LIST CATBOOST_COMPONENTS) OR (API-LIBS IN_LIST CATBOOST_COMPONENTS) OR (api-libs IN_LIST CATBOOST_COMPONENTS))

add_shared_library(catboost_train_interface)


set_property(TARGET catboost_train_interface PROPERTY OUTPUT_NAME
  catboost
)

target_link_libraries(catboost_train_interface PUBLIC
  contrib-libs-linux-headers
  contrib-libs-cxxsupp
  yutil
  build-cow-on
  contrib-libs-tcmalloc
  private-libs-algo
  catboost-libs-column_description
  catboost-libs-data
  private-libs-data_util
  catboost-libs-helpers
  private-libs-init
  private-libs-labels
  catboost-libs-logging
  catboost-libs-metrics
  catboost-libs-model
  private-libs-options
  private-libs-target
  catboost-libs-train_lib
  library-cpp-grid_creator
  cpp-threading-local_executor
  library-cpp-json
  library-cpp-logger
  catboost-cuda-train_lib
  libs-model-cuda
)

target_allocator(catboost_train_interface
  cpp-malloc-tcmalloc
)

target_link_options(catboost_train_interface PRIVATE
  -ldl
  -lrt
  -Wl,--no-as-needed
  -fPIC
  -Wl,-z,notext
  -fPIC
  -lpthread
  -lrt
  -ldl
  -lcudadevrt
  -lculibos
  -lcudart_static
)

target_sources(catboost_train_interface PRIVATE
  ${PROJECT_SOURCE_DIR}/catboost/libs/train_interface/catboost_api.cpp
)


use_export_script(catboost_train_interface
  ${PROJECT_SOURCE_DIR}/catboost/libs/train_interface/catboost.exports
)

vcs_info(catboost_train_interface)

endif()
