blob: 331846286b2be7e42778b9b61eb68788c70b1e6a [file] [log] [blame]
Douglas Gregor61b5ff52010-06-08 19:23:49 +00001set(MODULE TRUE)
Daniel Dunbar6499e9c2009-11-15 00:27:43 +00002
NAKAMURA Takumiac8517922013-12-10 12:40:37 +00003set( LLVM_LINK_COMPONENTS
4 Support
5 )
Michael J. Spencer433e9c72010-09-14 06:39:35 +00006
Nico Weber216436c2013-12-29 23:14:26 +00007# If we don't need RTTI or EH, there's no reason to export anything
Nico Webere8ef46c2013-12-29 23:15:01 +00008# from the plugin.
Nico Weber216436c2013-12-29 23:14:26 +00009if( NOT LLVM_REQUIRES_RTTI )
10 if( NOT LLVM_REQUIRES_EH )
11 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
12 endif()
13endif()
14
Michael J. Spencer09476212010-09-13 23:54:41 +000015add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
Daniel Dunbar6499e9c2009-11-15 00:27:43 +000016
NAKAMURA Takumia9a35c62012-07-27 06:17:56 +000017add_dependencies(PrintFunctionNames
18 ClangAttrClasses
19 ClangAttrList
20 ClangCommentNodes
21 ClangDeclNodes
22 ClangDiagnosticCommon
23 ClangStmtNodes
24 )
25
Chandler Carruth28969b42012-06-21 01:30:21 +000026target_link_libraries(PrintFunctionNames
Chandler Carruth28969b42012-06-21 01:30:21 +000027 clangAST
NAKAMURA Takumiac8517922013-12-10 12:40:37 +000028 clangBasic
29 clangFrontend
Chandler Carruth28969b42012-06-21 01:30:21 +000030 )
31
Daniel Dunbar6499e9c2009-11-15 00:27:43 +000032set_target_properties(PrintFunctionNames
33 PROPERTIES
Douglas Gregor61b5ff52010-06-08 19:23:49 +000034 LINKER_LANGUAGE CXX
35 PREFIX "")