Douglas Gregor | eb5dc49 | 2010-06-08 19:23:49 +0000 | [diff] [blame] | 1 | set(MODULE TRUE) |
Daniel Dunbar | 9a69387 | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 2 | |
| 3 | set(LLVM_NO_RTTI 1) |
| 4 | |
Michael J. Spencer | f5ddcc0 | 2010-09-14 06:39:35 +0000 | [diff] [blame] | 5 | set( LLVM_USED_LIBS |
| 6 | clangFrontendTool |
| 7 | clangFrontend |
| 8 | clangDriver |
| 9 | clangSerialization |
| 10 | clangCodeGen |
| 11 | clangParse |
| 12 | clangSema |
Ted Kremenek | 2114258 | 2010-12-23 19:38:26 +0000 | [diff] [blame^] | 13 | clangStaticAnalyzerCheckers |
| 14 | clangStaticAnalyzerCore |
Michael J. Spencer | f5ddcc0 | 2010-09-14 06:39:35 +0000 | [diff] [blame] | 15 | 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? |
| 24 | set( LLVM_LINK_COMPONENTS |
| 25 | ${LLVM_TARGETS_TO_BUILD} |
| 26 | asmparser |
| 27 | bitreader |
| 28 | bitwriter |
| 29 | codegen |
| 30 | ipo |
| 31 | selectiondag |
| 32 | ) |
| 33 | |
Michael J. Spencer | 560a921 | 2010-09-13 23:54:41 +0000 | [diff] [blame] | 34 | add_clang_library(PrintFunctionNames PrintFunctionNames.cpp) |
Daniel Dunbar | 9a69387 | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 35 | |
| 36 | set_target_properties(PrintFunctionNames |
| 37 | PROPERTIES |
Douglas Gregor | eb5dc49 | 2010-06-08 19:23:49 +0000 | [diff] [blame] | 38 | LINKER_LANGUAGE CXX |
| 39 | PREFIX "") |