################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/async/cts/event/BUILD.bazel                                 #
#                                                                              #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary   #
# CMake-only content.                                                          #
#                                                                              #
# To disable autogeneration for this file entirely, delete this header.        #
################################################################################

iree_add_all_subdirs()

iree_cc_library(
  NAME
    event_test
  SRCS
    "event_test.cc"
  DEPS
    iree::async
    iree::async::cts::util::registry
    iree::async::cts::util::test_base
  TESTONLY
  ALWAYSLINK
  PUBLIC
)

if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
iree_cc_library(
  NAME
    event_source_posix_test
  SRCS
    "event_source_posix_test.cc"
  DEPS
    iree::async
    iree::async::cts::util::registry
    iree::async::cts::util::test_base
  TESTONLY
  ALWAYSLINK
  PUBLIC
)
endif()

set(_all_tests_platform_deps "")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
  list(APPEND _all_tests_platform_deps ::event_source_posix_test)
endif()
iree_cc_library(
  NAME
    all_tests
  DEPS
    ::event_test
    ${_all_tests_platform_deps}
  TESTONLY
  PUBLIC
)

iree_cc_library(
  NAME
    event_benchmark
  SRCS
    "event_benchmark.cc"
  DEPS
    benchmark
    iree::async
    iree::async::cts::util::benchmark_base
    iree::async::cts::util::registry
    iree::async::event_pool
    iree::base
  TESTONLY
  ALWAYSLINK
  PUBLIC
)

iree_cc_library(
  NAME
    event_pool_benchmark
  SRCS
    "event_pool_benchmark.cc"
  DEPS
    benchmark
    iree::async
    iree::async::cts::util::benchmark_base
    iree::async::cts::util::registry
    iree::async::event_pool
    iree::base
  TESTONLY
  ALWAYSLINK
  PUBLIC
)

iree_cc_library(
  NAME
    all_benchmarks
  DEPS
    ::event_benchmark
    ::event_pool_benchmark
  TESTONLY
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
