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 ListWarnings.cpp 10 ShowEnabledWarnings.cpp 11 TreeView.cpp 12 ) 13 14 target_link_libraries(diagtool 15 clangBasic 16 clangFrontend 17 ) 18 19 if(UNIX) 20 set(CLANGXX_LINK_OR_COPY create_symlink) 21 else() 22 set(CLANGXX_LINK_OR_COPY copy) 23 endif() 24