2011-08-09 11:41:03 +08:00
|
|
|
set( LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
2011-08-09 11:39:19 +08:00
|
|
|
set( LLVM_USED_LIBS
|
|
|
|
clangBasic
|
|
|
|
clangLex
|
|
|
|
clangSema
|
2012-06-05 00:57:50 +08:00
|
|
|
clangFrontend
|
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
|
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()
|
|
|
|
|
|
|
|
install(TARGETS diagtool
|
|
|
|
RUNTIME DESTINATION bin)
|