clang/examples/LLVMPrintFunctionNames/CMakeLists.txt
raw| 1 | # There's no reason to export anything from the plugin. |
| 2 | set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/LLVMPrintFunctionNames.exports) |
| 3 | |
| 4 | add_llvm_library(LLVMPrintFunctionNames MODULE LLVMPrintFunctionNames.cpp PLUGIN_TOOL clang) |
| 5 | |
| 6 | if(WIN32 OR CYGWIN) |
| 7 | set(LLVM_LINK_COMPONENTS |
| 8 | Support |
| 9 | ) |
| 10 | clang_target_link_libraries(LLVMPrintFunctionNames PRIVATE |
| 11 | clangAST |
| 12 | clangBasic |
| 13 | clangFrontend |
| 14 | ) |
| 15 | endif() |