1set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports) 2add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp PLUGIN_TOOL clang) 3 4if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) 5 target_link_libraries(SampleAnalyzerPlugin PRIVATE 6 clangAnalysis 7 clangAST 8 clangStaticAnalyzerCore 9 LLVMSupport 10 ) 11endif() 12