summaryrefslogtreecommitdiff
path: root/examples/analyzer-plugin/CMakeLists.txt
blob: 9984880b2eb720bfae997d0e5c71c70c49665ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(LLVM_LINK_COMPONENTS
  Support
  )

add_clang_library(SampleAnalyzerPlugin MODULE MainCallChecker.cpp)

add_dependencies(SampleAnalyzerPlugin
  ClangAttrClasses
  ClangAttrList
  ClangCommentNodes
  ClangDeclNodes
  ClangDiagnosticCommon
  ClangStmtNodes
  )

target_link_libraries(SampleAnalyzerPlugin
  clangAST
  clangAnalysis
  clangStaticAnalyzerCore
  )

set_target_properties(SampleAnalyzerPlugin
  PROPERTIES
  LINKER_LANGUAGE CXX
  PREFIX "")