torch-mlir/lib/CAPI/CMakeLists.txt

22 lines
375 B
CMake

add_mlir_public_c_api_library(TorchMLIRCAPI
Dialects.cpp
Registration.cpp
TorchOps.cpp
TorchTypes.cpp
Transforms.cpp
ADDITIONAL_HEADER_DIRS
${PROJECT_SOURCE_DIR}/include/torch-mlir-c/
ENABLE_AGGREGATION
LINK_LIBS PUBLIC
MLIRIR
MLIRSupport
TorchMLIRTorchDialect
TorchMLIRInitAll
TorchMLIRTorchPasses
)
torch_mlir_target_includes(TorchMLIRCAPI)