Reapply "[lldb][dwarf] Compute fully qualified names on simplified template names...
[llvm-project.git] / clang / lib / FrontendTool / CMakeLists.txt
blobbfc7652b4c118fbf25a5709f5a85d6122c415e2d
1 set(LLVM_LINK_COMPONENTS
2   Option
3   Support
4   )
6 set(link_libs
7   clangBasic
8   clangCodeGen
9   clangDriver
10   clangExtractAPI
11   clangFrontend
12   clangRewriteFrontend
13   )
15 set(deps)
17 if(CLANG_ENABLE_CIR)
18   list(APPEND link_libs
19     clangCIRFrontendAction
20     MLIRIR
21     )
22 endif()
24 if(CLANG_ENABLE_ARCMT)
25   list(APPEND link_libs
26     clangARCMigrate
27     )
28 endif()
30 if(CLANG_ENABLE_STATIC_ANALYZER)
31   list(APPEND link_libs
32     clangStaticAnalyzerFrontend
33     )
34 endif()
36 add_clang_library(clangFrontendTool
37   ExecuteCompilerInvocation.cpp
39   DEPENDS
40   ClangDriverOptions
41   ${deps}
43   LINK_LIBS
44   ${link_libs}
45   )
47 if(CLANG_ENABLE_CIR)
48   target_include_directories(clangFrontendTool PRIVATE ${LLVM_MAIN_SRC_DIR}/../mlir/include)
49   target_include_directories(clangFrontendTool PRIVATE ${CMAKE_BINARY_DIR}/tools/mlir/include)
50 endif()