Files
llvm/mlir/test/python/lib/CMakeLists.txt
Maksim Levental 93097b2d47 Revert "[MLIR][Python] use FetchContent_Declare for nanobind and remove pybind (#161230)" (#162309)
This reverts commit 84a214856a.

This gives us more time to work out the alternative and also people to
migrate
2025-10-07 16:30:10 +00:00

34 lines
560 B
CMake

set(LLVM_OPTIONAL_SOURCES
PythonTestCAPI.cpp
PythonTestDialect.cpp
PythonTestModulePybind11.cpp
PythonTestModuleNanobind.cpp
)
add_mlir_library(MLIRPythonTestDialect
PythonTestDialect.cpp
EXCLUDE_FROM_LIBMLIR
DEPENDS
MLIRPythonTestIncGen
)
mlir_target_link_libraries(MLIRPythonTestDialect PUBLIC
MLIRInferTypeOpInterface
MLIRIR
MLIRSupport
)
add_mlir_public_c_api_library(MLIRCAPIPythonTestDialect
PythonTestCAPI.cpp
DEPENDS
MLIRPythonTestIncGen
LINK_LIBS PUBLIC
MLIRCAPIInterfaces
MLIRCAPIIR
MLIRPythonTestDialect
)