blob: f8d7375906abd3f3b355cf3ab2d8735d5bd0df91 [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
13 clangChecker
14 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 "")