diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt index fc85c9b193ac..d19b258e5fc2 100644 --- a/packaging/CMakeLists.txt +++ b/packaging/CMakeLists.txt @@ -45,6 +45,18 @@ foreach (dep IN ITEMS Halide_LLVM Halide_wabt) endif () endforeach () +## +# Python bindings +## + +if (WITH_PYTHON_BINDINGS) + set(Halide_INSTALL_PYTHONDIR "${CMAKE_INSTALL_LIBDIR}/python3/site-packages" + CACHE STRING "Path to Halide Python bindings folder") + install(TARGETS Halide_Python + LIBRARY DESTINATION ${Halide_INSTALL_PYTHONDIR} COMPONENT Halide_Python + NAMELINK_COMPONENT Halide_Python) +endif () + ## # Library-type-agnostic interface targets ##