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