[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / mlir / tools / mlir-rewrite / CMakeLists.txt
blob5b8c1cd45539978363a77d6ad76e7a3c22c7105a
1 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
2 set(LLVM_LINK_COMPONENTS
3   Support
4   )
6 set(LIBS
7   ${dialect_libs}
8   ${test_libs}
10   MLIRAffineAnalysis
11   MLIRAnalysis
12   MLIRCastInterfaces
13   MLIRDialect
14   MLIRParser
15   MLIRPass
16   MLIRTransforms
17   MLIRTransformUtils
18   MLIRSupport
19   MLIRIR
20   )
22 include_directories(../../../clang/include)
24 add_mlir_tool(mlir-rewrite
25   mlir-rewrite.cpp
27   DEPENDS
28   ${LIBS}
29   SUPPORT_PLUGINS
30   )
31 target_link_libraries(mlir-rewrite PRIVATE ${LIBS})
32 llvm_update_compile_flags(mlir-rewrite)
34 mlir_check_all_link_libraries(mlir-rewrite)
35 export_executable_symbols_for_plugins(mlir-rewrite)