################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/async/cts/sync/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
    notification_test
  SRCS
    "notification_test.cc"
  DEPS
    iree::async
    iree::async::cts::util::registry
    iree::async::cts::util::test_base
    iree::base::threading
  TESTONLY
  ALWAYSLINK
  PUBLIC
)

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

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

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

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

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

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

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

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

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

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

iree_cc_library(
  NAME
    notification_tests
  DEPS
    ::cancellation_test
    ::notification_test
    ::signal_test
  TESTONLY
  PUBLIC
)

iree_cc_library(
  NAME
    shared_notification_tests
  DEPS
    ::shared_notification_test
  TESTONLY
  PUBLIC
)

set(_platform_tests_platform_deps "")
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
  list(APPEND _platform_tests_platform_deps ::relay_windows_test)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
  list(APPEND _platform_tests_platform_deps ::fence_posix_test)
  list(APPEND _platform_tests_platform_deps ::relay_posix_test)
else()
  list(APPEND _platform_tests_platform_deps ::fence_posix_test)
  list(APPEND _platform_tests_platform_deps ::relay_posix_test)
endif()
iree_cc_library(
  NAME
    platform_tests
  DEPS
    ${_platform_tests_platform_deps}
  TESTONLY
  PUBLIC
)

iree_cc_library(
  NAME
    relay_tests
  DEPS
    ::relay_test
  TESTONLY
  PUBLIC
)

iree_cc_library(
  NAME
    semaphore_tests
  DEPS
    ::semaphore_async_test
    ::semaphore_linked_test
    ::semaphore_sync_test
  TESTONLY
  PUBLIC
)

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

iree_cc_library(
  NAME
    all_benchmarks
  DEPS
    ::relay_benchmark
  TESTONLY
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
