[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / mlir / tools / mlir-lsp-server / CMakeLists.txt
blob8ff9cc2f07e8eb6c8c79cc1eec9bb5d276efcfd0
1 set(LLVM_OPTIONAL_SOURCES
2   null.cpp
5 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
6 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
7 set(LLVM_LINK_COMPONENTS
8   Core
9   Support
10   AsmParser
11   )
13 if(MLIR_INCLUDE_TESTS)
14   set(test_libs
15     MLIRAffineTransformsTestPasses
16     MLIRShapeTestPasses
17     MLIRSPIRVTestPasses
18     MLIRTestAnalysis
19     MLIRTestDialect
20     MLIRTestDynDialect
21     MLIRTestIR
22     MLIRTestPass
23     MLIRTestReducer
24     )
25   set(test_libs
26     ${test_libs}
27     MLIRTestTransformDialect
28     MLIRTestTransforms)
30   if (MLIR_ENABLE_PDL_IN_PATTERNMATCH)
31     set(test_libs
32       ${test_libs}
33       MLIRTestRewrite)
34   endif()
35 endif()
37 set(LIBS
38   ${conversion_libs}
39   ${dialect_libs}
40   ${extension_libs}
41   ${test_libs}
43   MLIRAffineAnalysis
44   MLIRAnalysis
45   MLIRDialect
46   MLIRFuncAllExtensions
47   MLIRLspServerLib
48   MLIRParser
49   MLIRPass
50   MLIRTensorAllExtensions
51   MLIRTransforms
52   MLIRTransformUtils
53   MLIRSupport
54   MLIRIR
55   )
57 add_mlir_tool(mlir-lsp-server
58   mlir-lsp-server.cpp
60   DEPENDS
61   ${LIBS}
62   )
63 target_link_libraries(mlir-lsp-server PRIVATE ${LIBS})
64 llvm_update_compile_flags(mlir-lsp-server)
66 mlir_check_all_link_libraries(mlir-lsp-server)