[clang-tools-extra] Prevent linking to duplicate .a libs and dylib
[lldb.git] / clang-tools-extra / clang-doc / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   support
3   BitstreamReader
4   FrontendOpenMP
5   )
6
7 add_clang_library(clangDoc
8   BitcodeReader.cpp
9   BitcodeWriter.cpp
10   ClangDoc.cpp
11   Generators.cpp
12   HTMLGenerator.cpp
13   Mapper.cpp
14   MDGenerator.cpp
15   Representation.cpp
16   Serialize.cpp
17   YAMLGenerator.cpp
18 )
19
20 clang_target_link_libraries(clangDoc
21   PRIVATE
22   clangAnalysis
23   clangAST
24   clangASTMatchers
25   clangBasic
26   clangFrontend
27   clangIndex
28   clangLex
29   clangTooling
30   clangToolingCore
31   )
32
33 add_subdirectory(tool)