blob: a107cbd70bb8cfa1515b80705667c37aac24cd30 [file] [log] [blame]
Chad Rosier1a5d4212012-08-09 17:17:01 +00001set(LLVM_LINK_COMPONENTS
2 ${LLVM_TARGETS_TO_BUILD}
3 asmparser
Ted Kremenek7eab9d32011-08-09 03:41:03 +00004 support
Chad Rosier1a5d4212012-08-09 17:17:01 +00005 mc
Ted Kremenek7eab9d32011-08-09 03:41:03 +00006 )
7
Ted Kremenek2dc651d2011-08-09 03:39:19 +00008add_clang_executable(diagtool
9 diagtool_main.cpp
10 DiagTool.cpp
Jordan Rose0832f822012-06-04 16:57:50 +000011 DiagnosticNames.cpp
Ted Kremenek2dc651d2011-08-09 03:39:19 +000012 ListWarnings.cpp
Jordan Rose0832f822012-06-04 16:57:50 +000013 ShowEnabledWarnings.cpp
Jordan Rosee7427632012-06-24 00:07:45 +000014 TreeView.cpp
Ted Kremenek2dc651d2011-08-09 03:39:19 +000015)
16
NAKAMURA Takumi28ba2ee2012-06-17 15:41:44 +000017add_dependencies(diagtool
18 ClangDiagnosticIndexName
19 )
20
Chandler Carruthb0d86712012-06-21 01:30:21 +000021target_link_libraries(diagtool
22 clangBasic
23 clangLex
24 clangSema
25 clangFrontend
26 )
27
Ted Kremenek2dc651d2011-08-09 03:39:19 +000028if(UNIX)
29 set(CLANGXX_LINK_OR_COPY create_symlink)
30else()
31 set(CLANGXX_LINK_OR_COPY copy)
32endif()