xref: /llvm-project/mlir/test/python/lib/CMakeLists.txt (revision 047e8e47c1f9d872aec835b915935802e195c555)
1set(LLVM_OPTIONAL_SOURCES
2  PythonTestCAPI.cpp
3  PythonTestDialect.cpp
4  PythonTestModulePybind11.cpp
5  PythonTestModuleNanobind.cpp
6)
7
8add_mlir_library(MLIRPythonTestDialect
9  PythonTestDialect.cpp
10
11  EXCLUDE_FROM_LIBMLIR
12
13  DEPENDS
14  MLIRPythonTestIncGen
15)
16mlir_target_link_libraries(MLIRPythonTestDialect PUBLIC
17  MLIRInferTypeOpInterface
18  MLIRIR
19  MLIRSupport
20)
21
22add_mlir_public_c_api_library(MLIRCAPIPythonTestDialect
23  PythonTestCAPI.cpp
24
25  DEPENDS
26  MLIRPythonTestIncGen
27
28  LINK_LIBS PUBLIC
29  MLIRCAPIInterfaces
30  MLIRCAPIIR
31  MLIRPythonTestDialect
32)
33
34