51 lines · plain
1set(LLVM_OPTIONAL_SOURCES2 null.cpp3)4 5set(LLVM_LINK_COMPONENTS6 Core7 Support8 AsmParser9 )10 11if(MLIR_INCLUDE_TESTS)12 set(test_libs13 MLIRAffineTransformsTestPasses14 MLIRShapeTestPasses15 MLIRSPIRVTestPasses16 MLIRTestAnalysis17 MLIRTestDialect18 MLIRTestDynDialect19 MLIRTestIR20 MLIRTestPass21 MLIRTestReducer22 )23 set(test_libs24 ${test_libs}25 MLIRTestTransformDialect26 MLIRTestTransforms)27 28 if (MLIR_ENABLE_PDL_IN_PATTERNMATCH)29 set(test_libs30 ${test_libs}31 MLIRTestRewrite)32 endif()33endif()34 35set(LIBS36 MLIRLspServerLib37 38 MLIRRegisterAllDialects39 MLIRRegisterAllExtensions40 MLIRRegisterAllPasses41 )42 43add_mlir_tool(mlir-lsp-server44 mlir-lsp-server.cpp45 )46mlir_target_link_libraries(mlir-lsp-server PRIVATE ${LIBS})47target_link_libraries(mlir-lsp-server PRIVATE ${test_libs})48llvm_update_compile_flags(mlir-lsp-server)49 50mlir_check_all_link_libraries(mlir-lsp-server)51