Douglas Gregor | 61b5ff5 | 2010-06-08 19:23:49 +0000 | [diff] [blame] | 1 | set(MODULE TRUE) |
Daniel Dunbar | 6499e9c | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 2 | |
NAKAMURA Takumi | ac851792 | 2013-12-10 12:40:37 +0000 | [diff] [blame] | 3 | set( LLVM_LINK_COMPONENTS |
| 4 | Support |
| 5 | ) |
Michael J. Spencer | 433e9c7 | 2010-09-14 06:39:35 +0000 | [diff] [blame] | 6 | |
Nico Weber | 216436c | 2013-12-29 23:14:26 +0000 | [diff] [blame^] | 7 | # If we don't need RTTI or EH, there's no reason to export anything |
| 8 | # from the hello plugin. |
| 9 | if( NOT LLVM_REQUIRES_RTTI ) |
| 10 | if( NOT LLVM_REQUIRES_EH ) |
| 11 | set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports) |
| 12 | endif() |
| 13 | endif() |
| 14 | |
Michael J. Spencer | 0947621 | 2010-09-13 23:54:41 +0000 | [diff] [blame] | 15 | add_clang_library(PrintFunctionNames PrintFunctionNames.cpp) |
Daniel Dunbar | 6499e9c | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 16 | |
NAKAMURA Takumi | a9a35c6 | 2012-07-27 06:17:56 +0000 | [diff] [blame] | 17 | add_dependencies(PrintFunctionNames |
| 18 | ClangAttrClasses |
| 19 | ClangAttrList |
| 20 | ClangCommentNodes |
| 21 | ClangDeclNodes |
| 22 | ClangDiagnosticCommon |
| 23 | ClangStmtNodes |
| 24 | ) |
| 25 | |
Chandler Carruth | 28969b4 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 26 | target_link_libraries(PrintFunctionNames |
Chandler Carruth | 28969b4 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 27 | clangAST |
NAKAMURA Takumi | ac851792 | 2013-12-10 12:40:37 +0000 | [diff] [blame] | 28 | clangBasic |
| 29 | clangFrontend |
Chandler Carruth | 28969b4 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 30 | ) |
| 31 | |
Daniel Dunbar | 6499e9c | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 32 | set_target_properties(PrintFunctionNames |
| 33 | PROPERTIES |
Douglas Gregor | 61b5ff5 | 2010-06-08 19:23:49 +0000 | [diff] [blame] | 34 | LINKER_LANGUAGE CXX |
| 35 | PREFIX "") |