mirror of https://github.com/llvm/torch-mlir
25 lines
818 B
CMake
25 lines
818 B
CMake
# torch-mlir-lsp-server is always linked dynamically as we want to distribute the
|
|
# binaries with the python packages for hacking/debugging.
|
|
add_llvm_executable(torch-mlir-lsp-server torch-mlir-lsp-server.cpp)
|
|
|
|
install(TARGETS torch-mlir-lsp-server
|
|
EXPORT TorchMLIRTargets
|
|
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
|
|
COMPONENT torch-mlir-lsp-server)
|
|
|
|
# get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
# get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
# get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
|
|
|
|
target_link_libraries(torch-mlir-lsp-server PRIVATE
|
|
MLIRLspServerLib
|
|
TorchMLIRInitAll
|
|
|
|
# # TODO: Remove these in favor of interface deps.
|
|
# ${dialect_libs}
|
|
# ${conversion_libs}
|
|
# ${extension_libs}
|
|
)
|
|
|
|
mlir_check_all_link_libraries(torch-mlir-lsp-server)
|