Skip to content

Commit

Permalink
Add missing exports
Browse files Browse the repository at this point in the history
This enables running the tests on an installed area.
  • Loading branch information
stephenneuendorffer committed Apr 12, 2024
1 parent 888c454 commit 8426d43
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/AIEConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ endif()
if(NOT TARGET aie-copy-runtime-libs)
add_custom_target(aie-copy-runtime-libs)
endif()

if(NOT TARGET AIEPythonModules)
add_custom_target(AIEPythonModules)
endif()
4 changes: 4 additions & 0 deletions tools/aie-lsp-server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ set(AIE_LSP_LIBS
add_llvm_tool(aie-lsp-server
aie-lsp-server.cpp
)
install(TARGETS aie-lsp-server
EXPORT AIETargets
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
COMPONENT aie-lsp-server)

target_link_libraries(aie-lsp-server PRIVATE ${AIE_LSP_LIBS})
5 changes: 5 additions & 0 deletions tools/aie-translate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
add_mlir_tool(aie-translate
aie-translate.cpp
)
install(TARGETS aie-translate
EXPORT AIETargets
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
COMPONENT aie-translate)

llvm_update_compile_flags(aie-translate)
target_link_libraries(aie-translate
PRIVATE
Expand Down

0 comments on commit 8426d43

Please sign in to comment.