1*0a6a1f1dSLionel Sambucset(LLVM_LINK_COMPONENTS 2*0a6a1f1dSLionel Sambuc Option 3*0a6a1f1dSLionel Sambuc Support 4f4a2713aSLionel Sambuc ) 5f4a2713aSLionel Sambuc 6*0a6a1f1dSLionel Sambucset(link_libs 7*0a6a1f1dSLionel Sambuc clangBasic 8*0a6a1f1dSLionel Sambuc clangCodeGen 9f4a2713aSLionel Sambuc clangDriver 10f4a2713aSLionel Sambuc clangFrontend 11f4a2713aSLionel Sambuc clangRewriteFrontend 12f4a2713aSLionel Sambuc ) 13f4a2713aSLionel Sambuc 14f4a2713aSLionel Sambucif(CLANG_ENABLE_ARCMT) 15*0a6a1f1dSLionel Sambuc list(APPEND link_libs 16f4a2713aSLionel Sambuc clangARCMigrate 17f4a2713aSLionel Sambuc ) 18f4a2713aSLionel Sambucendif() 19f4a2713aSLionel Sambuc 20f4a2713aSLionel Sambucif(CLANG_ENABLE_STATIC_ANALYZER) 21*0a6a1f1dSLionel Sambuc list(APPEND link_libs 22f4a2713aSLionel Sambuc clangStaticAnalyzerFrontend 23f4a2713aSLionel Sambuc ) 24f4a2713aSLionel Sambucendif() 25*0a6a1f1dSLionel Sambuc 26*0a6a1f1dSLionel Sambucadd_clang_library(clangFrontendTool 27*0a6a1f1dSLionel Sambuc ExecuteCompilerInvocation.cpp 28*0a6a1f1dSLionel Sambuc 29*0a6a1f1dSLionel Sambuc DEPENDS 30*0a6a1f1dSLionel Sambuc ClangDriverOptions 31*0a6a1f1dSLionel Sambuc 32*0a6a1f1dSLionel Sambuc LINK_LIBS 33*0a6a1f1dSLionel Sambuc ${link_libs} 34*0a6a1f1dSLionel Sambuc ) 35