blob: 58b4603e9b6da43301eb36fc32382704e5353191 [file] [log] [blame]
Douglas Gregoreb5dc492010-06-08 19:23:49 +00001set(MODULE TRUE)
Daniel Dunbar9a693872009-11-15 00:27:43 +00002
Michael J. Spencerf5ddcc02010-09-14 06:39:35 +00003set( LLVM_USED_LIBS
4 clangFrontendTool
5 clangFrontend
6 clangDriver
7 clangSerialization
8 clangCodeGen
9 clangParse
10 clangSema
Argyrios Kyrtzidise8177712011-02-14 18:13:01 +000011 clangStaticAnalyzerFrontend
Ted Kremenek21142582010-12-23 19:38:26 +000012 clangStaticAnalyzerCheckers
13 clangStaticAnalyzerCore
Michael J. Spencerf5ddcc02010-09-14 06:39:35 +000014 clangAnalysis
15 clangIndex
16 clangRewrite
17 clangAST
18 clangLex
19 clangBasic
20 )
21
22# Why do we have to link to all this just to print out function names?
23set( LLVM_LINK_COMPONENTS
24 ${LLVM_TARGETS_TO_BUILD}
25 asmparser
26 bitreader
27 bitwriter
28 codegen
29 ipo
30 selectiondag
31 )
32
Michael J. Spencer560a9212010-09-13 23:54:41 +000033add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
Daniel Dunbar9a693872009-11-15 00:27:43 +000034
35set_target_properties(PrintFunctionNames
36 PROPERTIES
Douglas Gregoreb5dc492010-06-08 19:23:49 +000037 LINKER_LANGUAGE CXX
38 PREFIX "")