Home | History | Annotate | Download | only in diagtool
      1 set(LLVM_LINK_COMPONENTS
      2   ${LLVM_TARGETS_TO_BUILD}
      3   asmparser
      4   support
      5   mc
      6   )
      7 
      8 add_clang_executable(diagtool
      9   diagtool_main.cpp
     10   DiagTool.cpp
     11   DiagnosticNames.cpp
     12   ListWarnings.cpp
     13   ShowEnabledWarnings.cpp
     14   TreeView.cpp
     15 )
     16 
     17 add_dependencies(diagtool
     18   ClangDiagnosticIndexName
     19   )
     20 
     21 target_link_libraries(diagtool
     22   clangBasic
     23   clangLex
     24   clangSema
     25   clangFrontend
     26   )
     27 
     28 if(UNIX)
     29   set(CLANGXX_LINK_OR_COPY create_symlink)
     30 else()
     31   set(CLANGXX_LINK_OR_COPY copy)
     32 endif()
     33