| 1 |
include_directories(${LLVM_MAIN_SRC_DIR}/../mlir/include) |
| 2 |
include_directories(${CMAKE_BINARY_DIR}/tools/mlir/include) |
| 3 |
|
| 4 |
set(LIBS |
| 5 |
${test_libs} |
| 6 |
clangCIR |
| 7 |
clangCIRLoweringDirectToLLVM |
| 8 |
MLIRAffineAnalysis |
| 9 |
MLIRAnalysis |
| 10 |
MLIRCIR |
| 11 |
MLIRDialect |
| 12 |
MLIRIR |
| 13 |
MLIRLspServerLib |
| 14 |
MLIRParser |
| 15 |
MLIRPass |
| 16 |
MLIRRegisterAllDialects |
| 17 |
MLIRRegisterAllPasses |
| 18 |
MLIRSupport |
| 19 |
MLIRTransformUtils |
| 20 |
MLIRTransforms |
| 21 |
) |
| 22 |
|
| 23 |
add_mlir_tool(cir-lsp-server |
| 24 |
cir-lsp-server.cpp |
| 25 |
|
| 26 |
DEPENDS |
| 27 |
${LIBS} |
| 28 |
) |
| 29 |
|
| 30 |
target_link_libraries(cir-lsp-server PRIVATE ${LIBS}) |
| 31 |
llvm_update_compile_flags(cir-lsp-server) |