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