Files
concrete/compiler/python/zamalang/dialects/CMakeLists.txt
Ayoub Benaissa ab53ef71c6 feat(compiler): Python bindings (#53)
- feat(compiler): python bindings
- build: update docker image for python bindings
- pin pybind11 to 2.6.2, 2.7 is not having correct include_dirs set (still
a question why?)
- using generated parser/printer
2021-07-28 15:58:51 +01:00

32 lines
1.0 KiB
CMake

include(AddMLIRPython)
################################################################################
# Generate dialect-specific bindings.
################################################################################
add_mlir_dialect_python_bindings(ZAMALANGBindingsPythonHLFHEOps
TD_FILE HLFHEOps.td
DIALECT_NAME HLFHE)
add_dependencies(ZAMALANGBindingsPythonSources ZAMALANGBindingsPythonHLFHEOps)
################################################################################
# Installation.
################################################################################
install(
DIRECTORY ${PROJECT_BINARY_DIR}/python/zamalang/dialects
DESTINATION python/zamalang
COMPONENT ZAMALANGBindingsPythonDialects
FILES_MATCHING PATTERN "_*_gen.py"
PATTERN "__pycache__" EXCLUDE
PATTERN "__init__.py" EXCLUDE
)
if (NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(
install-ZAMALANGBindingsPythonDialects
DEPENDS ZAMALANGBindingsPythonSources
COMPONENT ZAMALANGBindingsPythonDialects)
endif()