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


add_subdirectory(ut)
get_built_tool_path(
  TOOL_flatc_bin
  TOOL_flatc_dependency
  contrib/tools/flatc/bin
  flatc
)
get_built_tool_path(
  TOOL_flatc_bin
  TOOL_flatc_dependency
  contrib/tools/flatc/bin
  flatc
)

add_library(private-libs-text_features)
target_link_libraries(private-libs-text_features PUBLIC
  contrib-libs-cxxsupp
  yutil
  catboost-libs-helpers
  private-libs-data_types
  private-libs-options
  private-libs-text_processing
  contrib-libs-clapack
  contrib-libs-flatbuffers
  cpp-threading-local_executor
)
target_sources(private-libs-text_features PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/feature_calcer.cpp
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/text_feature_calcers.cpp
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/text_processing_collection.cpp
  ${CMAKE_BINARY_DIR}/catboost/private/libs/text_features/flatbuffers/feature_calcers.fbs.cpp
  ${CMAKE_BINARY_DIR}/catboost/private/libs/text_features/flatbuffers/text_processing_collection.fbs.cpp
)
target_fbs_source(private-libs-text_features
  PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/flatbuffers/feature_calcers.fbs
  -I
  ${CMAKE_BINARY_DIR}
  -I
  ${CMAKE_SOURCE_DIR}
)
target_fbs_source(private-libs-text_features
  PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/flatbuffers/text_processing_collection.fbs
  -I
  ${CMAKE_BINARY_DIR}
  -I
  ${CMAKE_SOURCE_DIR}
)

add_global_library_for(private-libs-text_features.global private-libs-text_features)
target_link_libraries(private-libs-text_features.global PUBLIC
  contrib-libs-cxxsupp
  yutil
  catboost-libs-helpers
  private-libs-data_types
  private-libs-options
  private-libs-text_processing
  contrib-libs-clapack
  contrib-libs-flatbuffers
  cpp-threading-local_executor
)
target_sources(private-libs-text_features.global PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/bm25.cpp
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/bow.cpp
  ${CMAKE_SOURCE_DIR}/catboost/private/libs/text_features/naive_bayesian.cpp
)
