summaryrefslogtreecommitdiff
path: root/examples/analyzer-plugin/CMakeLists.txt
blob: 0d5b2754cafec4c664175fae58cee1929d4b88f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports)
add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp PLUGIN_TOOL clang)

if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
  target_link_libraries(SampleAnalyzerPlugin PRIVATE
    clangAnalysis
    clangAST
    clangStaticAnalyzerCore
    LLVMSupport
    )
endif()