diff --git a/CMakeLists.txt b/CMakeLists.txt index 4528ce1a9f..4c30e50954 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -208,4 +208,16 @@ add_subdirectory(tests) add_custom_target(check-buddy DEPENDS check-examples check-tests -) \ No newline at end of file +) + +#------------------------------------------------------------------------------- +# Target install +#------------------------------------------------------------------------------- + +# Install frontend interfaces into include directory, so that the downstream project can use them in distribution +install(DIRECTORY buddy/Core buddy/DAP buddy/DIP buddy/LLM + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/buddy-mlir + COMPONENT buddy-mlir-interfaces-headers + FILES_MATCHING + PATTERN "*.h" + )