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

add_library(restricted-google-benchmark)


target_compile_options(restricted-google-benchmark PUBLIC
  -DBENCHMARK_STATIC_DEFINE
)

target_compile_options(restricted-google-benchmark PRIVATE
  [=[-DBENCHMARK_VERSION="v1.9.5"]=]
  -DHAVE_PTHREAD_AFFINITY
  -DHAVE_STD_REGEX
  -DHAVE_STEADY_CLOCK
  $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)

target_include_directories(restricted-google-benchmark PUBLIC
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/include
)

target_include_directories(restricted-google-benchmark PRIVATE
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src
)

target_link_libraries(restricted-google-benchmark PUBLIC
  contrib-libs-cxxsupp
)

target_sources(restricted-google-benchmark PRIVATE
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/benchmark.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/benchmark_api_internal.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/benchmark_name.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/benchmark_register.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/benchmark_runner.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/check.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/colorprint.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/commandlineflags.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/complexity.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/console_reporter.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/counter.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/csv_reporter.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/json_reporter.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/perf_counters.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/reporter.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/statistics.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/string_util.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/sysinfo.cc
  ${PROJECT_SOURCE_DIR}/contrib/restricted/google/benchmark/src/timers.cc
)

