################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/API/test/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_test(
  NAME
    api-test-binary
  SRCS
    "api-test-main.c"
  DEPS
    IREELLVMIncludeSetup
    iree::compiler::API::Impl
    iree::compiler::bindings::c::headers
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###

# Move to bin/ directory and systematically name more appropriately.
# See: https://github.com/iree-org/iree/issues/11297
if(TARGET iree_compiler_API_test_api-test-binary)
  set_target_properties(iree_compiler_API_test_api-test-binary
    PROPERTIES
    OUTPUT_NAME "test-iree-compiler-api-test-binary"
    RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tools"
  )
endif()
