
# 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.


find_package(Python3 REQUIRED COMPONENTS Development)
add_subdirectory(no_cuda)

add_library(_catboost SHARED)
target_compile_options(_catboost PRIVATE
  $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_cython_sources(_catboost PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/python-package/catboost/_catboost.pyx
)
target_link_libraries(_catboost PUBLIC
  contrib-libs-cxxsupp
  yutil
  Python3::Module
  catboost-libs-cat_feature
  catboost-libs-data
  catboost-libs-eval_result
  catboost-libs-features_selection
  catboost-libs-fstr
  catboost-libs-helpers
  catboost-libs-loggers
  catboost-libs-logging
  catboost-libs-metrics
  catboost-libs-model
  catboost-libs-monoforest
  catboost-libs-train_lib
  private-libs-algo
  private-libs-algo_helpers
  private-libs-data_types
  private-libs-data_util
  private-libs-documents_importance
  private-libs-init
  private-libs-hyperparameter_tuning
  private-libs-options
  private-libs-quantized_pool_analysis
  private-libs-target
  python-numpy-include
  cpp-containers-2d_array
  cpp-json-writer
  cpp-text_processing-tokenizer
  cpp-text_processing-app_helpers
  libs-gpu_config-maybe_have_cuda
  catboost-cuda-train_lib
  libs-model-cuda
)
target_sources(_catboost PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/python-package/catboost/helpers.cpp
  ${CMAKE_SOURCE_DIR}/catboost/python-package/catboost/monoforest_helpers.cpp
)
set_python_type_for_cython(_catboost
  PY3
)
target_allocator(_catboost
  system_allocator
)
target_cython_include_directories(_catboost
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/contrib/tools/cython/Cython/Includes
  ${CMAKE_SOURCE_DIR}/contrib/python/numpy/include/numpy/core/include
  ${CMAKE_SOURCE_DIR}/contrib/python/numpy/include/numpy/core/include/numpy
)
target_cython_options(_catboost
  -E
  UNAME_SYSNAME=Windows
  --module-name
  _catboost
  --cplus
)
use_export_script(_catboost
  ${CMAKE_SOURCE_DIR}/catboost/python-package/catboost/catboost3.exports
)
vcs_info(_catboost)
