1set(LLVM_LINK_COMPONENTS 2 Support 3 ) 4 5add_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 15clang_target_link_libraries(diagtool 16 PRIVATE 17 clangBasic 18 clangFrontend 19 ) 20 21if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) 22 install(TARGETS diagtool 23 COMPONENT diagtool 24 RUNTIME DESTINATION bin) 25 26 if (NOT LLVM_ENABLE_IDE) 27 add_llvm_install_targets(install-diagtool 28 DEPENDS diagtool 29 COMPONENT diagtool) 30 endif() 31endif() 32