################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/vm/bytecode/assembler/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
    source
  HDRS
    "source.h"
  SRCS
    "source.c"
  DEPS
    iree::base
  PUBLIC
)

iree_cc_library(
  NAME
    module
  HDRS
    "module.h"
  SRCS
    "module.c"
  DEPS
    iree::base
    iree::vm::bytecode::isa
  PUBLIC
)

iree_cc_library(
  NAME
    bytecode
  HDRS
    "bytecode.h"
  SRCS
    "bytecode.c"
  DEPS
    ::module
    ::source
    iree::base
    iree::vm::bytecode::isa
  PUBLIC
)

iree_cc_library(
  NAME
    parser
  HDRS
    "parser.h"
  SRCS
    "parser.c"
  DEPS
    ::bytecode
    ::module
    ::source
    iree::base
    iree::vm::bytecode::isa
  PUBLIC
)

iree_cc_library(
  NAME
    archive
  HDRS
    "archive.h"
  SRCS
    "archive.c"
  DEPS
    ::module
    iree::base
    iree::base::internal::flatcc::building
    iree::schemas::bytecode_module_def_c_fbs
    iree::vm
    iree::vm::bytecode::isa
  PUBLIC
)

iree_cc_library(
  NAME
    assembler
  HDRS
    "assembler.h"
  SRCS
    "assembler.c"
  DEPS
    ::archive
    ::module
    ::parser
    iree::base
  PUBLIC
)

iree_cc_test(
  NAME
    source_test
  SRCS
    "source_test.cc"
  DEPS
    ::source
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    module_test
  SRCS
    "module_test.cc"
  DEPS
    ::module
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    bytecode_test
  SRCS
    "bytecode_test.cc"
  DEPS
    ::bytecode
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
    iree::vm::bytecode::isa
)

iree_cc_test(
  NAME
    parser_test
  SRCS
    "parser_test.cc"
  DEPS
    ::parser
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    assembler_test
  SRCS
    "assembler_test.cc"
  DEPS
    ::assembler
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
    iree::vm
    iree::vm::bytecode::module
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
