1set(LLVM_LINK_COMPONENTS 2 Support 3 ) 4 5add_clang_executable(diagtool 6 diagtool_main.cpp 7 DiagTool.cpp 8 DiagnosticNames.cpp 9 ListWarnings.cpp 10 ShowEnabledWarnings.cpp 11 TreeView.cpp 12) 13 14target_link_libraries(diagtool 15 clangBasic 16 clangFrontend 17 ) 18 19if(UNIX) 20 set(CLANGXX_LINK_OR_COPY create_symlink) 21else() 22 set(CLANGXX_LINK_OR_COPY copy) 23endif() 24