[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / tools / mlir-lsp-server / CMakeLists.txt
blobe90ccf17af17f54c62ae141afc3c7f75faa0720f
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     MLIRTestRewrite
25     MLIRTestTransformDialect
26     MLIRTestTransforms
27     )
28 endif()
30 set(LIBS
31   ${conversion_libs}
32   ${dialect_libs}
33   ${extension_libs}
34   ${test_libs}
36   MLIRAffineAnalysis
37   MLIRAnalysis
38   MLIRDialect
39   MLIRFuncAllExtensions
40   MLIRLspServerLib
41   MLIRParser
42   MLIRPass
43   MLIRTransforms
44   MLIRTransformUtils
45   MLIRSupport
46   MLIRIR
47   )
49 add_mlir_tool(mlir-lsp-server
50   mlir-lsp-server.cpp
52   DEPENDS
53   ${LIBS}
54   )
55 target_link_libraries(mlir-lsp-server PRIVATE ${LIBS})
56 llvm_update_compile_flags(mlir-lsp-server)
58 mlir_check_all_link_libraries(mlir-lsp-server)