# If C output not enabled, make a dummy library to preserve the build
# graph. Note that it does not define IREE_HAVE_C_OUTPUT_FORMAT.
if(NOT IREE_OUTPUT_FORMAT_C)
  iree_cc_library(
    NAME
      C
    PUBLIC
  )

  return()
endif()

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_ABOVE_THIS_LINE ###
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Dialect/VM/Target/C/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
    C
  HDRS
    "CModuleTarget.h"
    "TranslationFlags.h"
  SRCS
    "CModuleTarget.cpp"
    "TranslationFlags.cpp"
    "TranslationRegistration.cpp"
  DEPS
    LLVMSupport
    MLIRControlFlowDialect
    MLIRIR
    MLIRPass
    MLIRSupport
    MLIRTargetCpp
    MLIRTransforms
    MLIRTranslateLib
    iree::compiler::Dialect::Util::IR
    iree::compiler::Dialect::Util::Transforms
    iree::compiler::Dialect::VM::Analysis
    iree::compiler::Dialect::VM::Conversion::VMToEmitC
    iree::compiler::Dialect::VM::IR
    iree::compiler::Dialect::VM::Transforms
  DEFINES
    "IREE_HAVE_C_OUTPUT_FORMAT"
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
