2012-08-10 01:17:01 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2013-12-10 20:40:37 +08:00
|
|
|
Support
|
2011-08-09 11:41:03 +08:00
|
|
|
)
|
|
|
|
|
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-21 09:30:21 +08:00
|
|
|
target_link_libraries(diagtool
|
|
|
|
clangBasic
|
|
|
|
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()
|