2011-08-09 11:41:03 +08:00
|
|
|
set( LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
2011-08-09 11:39:19 +08:00
|
|
|
add_clang_executable(diagtool
|
|
|
|
diagtool_main.cpp
|
|
|
|
DiagTool.cpp
|
2012-06-05 00:57:50 +08:00
|
|
|
DiagnosticNames.cpp
|
2011-08-09 11:39:19 +08:00
|
|
|
ListWarnings.cpp
|
2012-06-05 00:57:50 +08:00
|
|
|
ShowEnabledWarnings.cpp
|
2012-06-24 08:07:45 +08:00
|
|
|
TreeView.cpp
|
2011-08-09 11:39:19 +08:00
|
|
|
)
|
|
|
|
|
2012-06-17 23:41:44 +08:00
|
|
|
add_dependencies(diagtool
|
|
|
|
ClangDiagnosticIndexName
|
|
|
|
)
|
|
|
|
|
2012-06-21 09:30:21 +08:00
|
|
|
target_link_libraries(diagtool
|
|
|
|
clangBasic
|
|
|
|
clangLex
|
|
|
|
clangSema
|
|
|
|
clangFrontend
|
|
|
|
)
|
|
|
|
|
2011-08-09 11:39:19 +08:00
|
|
|
if(UNIX)
|
|
|
|
set(CLANGXX_LINK_OR_COPY create_symlink)
|
|
|
|
else()
|
|
|
|
set(CLANGXX_LINK_OR_COPY copy)
|
|
|
|
endif()
|