xref: /openbsd-src/gnu/llvm/clang/lib/FrontendTool/CMakeLists.txt (revision 12c855180aad702bbcca06e0398d774beeafb155)
1set(LLVM_LINK_COMPONENTS
2  Option
3  Support
4  )
5
6set(link_libs
7  clangBasic
8  clangCodeGen
9  clangDriver
10  clangExtractAPI
11  clangFrontend
12  clangRewriteFrontend
13  )
14
15if(CLANG_ENABLE_ARCMT)
16  list(APPEND link_libs
17    clangARCMigrate
18    )
19endif()
20
21if(CLANG_ENABLE_STATIC_ANALYZER)
22  list(APPEND link_libs
23    clangStaticAnalyzerFrontend
24    )
25endif()
26
27add_clang_library(clangFrontendTool
28  ExecuteCompilerInvocation.cpp
29
30  DEPENDS
31  ClangDriverOptions
32
33  LINK_LIBS
34  ${link_libs}
35  )
36