1set(LLVM_LINK_COMPONENTS 2 ${LLVM_TARGETS_TO_BUILD} 3 asmparser 4 bitreader 5 support 6 mc 7 ) 8 9add_clang_executable(diagtool 10 diagtool_main.cpp 11 DiagTool.cpp 12 DiagnosticNames.cpp 13 ListWarnings.cpp 14 ShowEnabledWarnings.cpp 15 TreeView.cpp 16) 17 18add_dependencies(diagtool 19 ClangDiagnosticIndexName 20 ) 21 22target_link_libraries(diagtool 23 clangBasic 24 clangLex 25 clangSema 26 clangFrontend 27 ) 28 29if(UNIX) 30 set(CLANGXX_LINK_OR_COPY create_symlink) 31else() 32 set(CLANGXX_LINK_OR_COPY copy) 33endif() 34