# lib/CAPI/CMakeLists.txt
add_mlir_public_c_api_library(SwageCAPI
  Codegen.cpp
  Dialects.cpp
  Target.cpp

  LINK_COMPONENTS
  NVPTXCodeGen
  NVPTXDesc
  NVPTXInfo
  Passes

  LINK_LIBS PUBLIC
  MLIRArithToLLVM
  MLIRBuiltinToLLVMIRTranslation
  MLIRControlFlowToLLVM
  MLIRFuncToLLVM
  MLIRExecutionEngine
  MLIRGPUToLLVMIRTranslation
  MLIRGPUToNVVMTransforms
  MLIRIndexToLLVM
  MLIRLLVMToLLVMIRTranslation
  MLIRMathToLLVM
  MLIRMemRefToLLVM
  MLIRNVVMToLLVM
  MLIRNVVMToLLVMIRTranslation
  MLIRSCFToControlFlow
  MLIRReconcileUnrealizedCasts
  MLIRSwage
  MLIRSwageFixedBlock
  MLIRSwagePlan
  MLIRSwagePlanToGPU
  MLIRSwageSupport
  MLIRSwageTarget
  MLIRSwageToPlan
  MLIRTargetLLVM
  MLIRUBToLLVM
  MLIRVectorToLLVM
)
