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

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

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

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

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

iree_cc_library(
  NAME
    multishot_test
  SRCS
    "multishot_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
    posix_test
  SRCS
    "posix_test.cc"
  DEPS
    iree::async
    iree::async::cts::util::registry
    iree::async::cts::util::socket_test_base
    iree::base
  TESTONLY
  ALWAYSLINK
  PUBLIC
)
endif()

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

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

iree_cc_library(
  NAME
    message_test
  SRCS
    "message_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 "Windows")
iree_cc_library(
  NAME
    win32_test
  SRCS
    "win32_test.cc"
  DEPS
    iree::async
    iree::async::cts::util::registry
    iree::async::cts::util::socket_test_base
    iree::base
  TESTONLY
  ALWAYSLINK
  PUBLIC
)
endif()

set(_all_tests_platform_deps "")
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
  list(APPEND _all_tests_platform_deps ::win32_test)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
  list(APPEND _all_tests_platform_deps ::posix_test)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
  list(APPEND _all_tests_platform_deps ::posix_test)
endif()
iree_cc_library(
  NAME
    all_tests
  DEPS
    ::data_lifetime_test
    ::lifecycle_test
    ::message_test
    ::multishot_test
    ::send_flags_test
    ::tcp_control_test
    ::tcp_transfer_test
    ::udp_test
    ::zerocopy_test
    ${_all_tests_platform_deps}
  TESTONLY
  PUBLIC
)

iree_cc_library(
  NAME
    socket_benchmark
  SRCS
    "socket_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
    ::socket_benchmark
  TESTONLY
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
