torch-mlir/lib/CAPI/CMakeLists.txt

23 lines
340 B
CMake

set(LLVM_LINK_COMPONENTS
Core
Support
nativecodegen
)
add_npcomp_library(NPCOMPCAPI
InitLLVM.cpp
Registration.cpp
LINK_LIBS PUBLIC
MLIRExecutionEngine
MLIRLLVMIR
MLIRTargetLLVMIRExport
NPCOMPInitAll
TorchMLIRTorchDialect
TorchMLIRInitAll
# MLIR CAPI deps
MLIRCAPIIR
MLIRCAPIRegistration # TODO: Remove
)