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