aboutsummaryrefslogtreecommitdiff
path: root/tools/diagtool/CMakeLists.txt
blob: 05b896975c925ba2e1df36b5a6972630c9ecee24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set( LLVM_LINK_COMPONENTS
  support
  )

set( LLVM_USED_LIBS
  clangBasic
  clangComments
  clangLex
  clangSema
  clangFrontend
  )

add_clang_executable(diagtool
  diagtool_main.cpp
  DiagTool.cpp
  DiagnosticNames.cpp
  ListWarnings.cpp
  ShowEnabledWarnings.cpp
)

add_dependencies(diagtool
  ClangDiagnosticIndexName
  )

if(UNIX)
  set(CLANGXX_LINK_OR_COPY create_symlink)
else()
  set(CLANGXX_LINK_OR_COPY copy)
endif()

install(TARGETS diagtool 
  RUNTIME DESTINATION bin)