]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/diagtool/CMakeLists.txt
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / tools / diagtool / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
4
5 add_clang_executable(diagtool
6   diagtool_main.cpp
7   DiagTool.cpp
8   DiagnosticNames.cpp
9   FindDiagnosticID.cpp
10   ListWarnings.cpp
11   ShowEnabledWarnings.cpp
12   TreeView.cpp
13 )
14
15 target_link_libraries(diagtool
16   PRIVATE
17   clangBasic
18   clangFrontend
19   )
20
21 if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
22   install(TARGETS diagtool
23     COMPONENT diagtool
24     RUNTIME DESTINATION bin)
25
26   if (NOT CMAKE_CONFIGURATION_TYPES)
27     add_llvm_install_targets(install-diagtool
28       DEPENDS diagtool
29       COMPONENT diagtool)
30   endif()
31 endif()