34 lines · plain
1set(LLVM_OPTIONAL_SOURCES2 PythonTestCAPI.cpp3 PythonTestDialect.cpp4 PythonTestModulePybind11.cpp5 PythonTestModuleNanobind.cpp6)7 8add_mlir_library(MLIRPythonTestDialect9 PythonTestDialect.cpp10 11 EXCLUDE_FROM_LIBMLIR12 13 DEPENDS14 MLIRPythonTestIncGen15)16mlir_target_link_libraries(MLIRPythonTestDialect PUBLIC17 MLIRInferTypeOpInterface18 MLIRIR19 MLIRSupport20)21 22add_mlir_public_c_api_library(MLIRCAPIPythonTestDialect23 PythonTestCAPI.cpp24 25 DEPENDS26 MLIRPythonTestIncGen27 28 LINK_LIBS PUBLIC29 MLIRCAPIInterfaces30 MLIRCAPIIR31 MLIRPythonTestDialect32)33 34