1 | set(LLVM_LINK_COMPONENTS support) |
2 | |
3 | add_clang_tool(clang-format |
4 | ClangFormat.cpp |
5 | ) |
6 | |
7 | set(CLANG_FORMAT_LIB_DEPS |
8 | clangBasic |
9 | clangFormat |
10 | clangRewrite |
11 | clangToolingCore |
12 | ) |
13 | |
14 | target_link_libraries(clang-format |
15 | PRIVATE |
16 | ${CLANG_FORMAT_LIB_DEPS} |
17 | ) |
18 | |
19 | if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE ) |
20 | add_subdirectory(fuzzer) |
21 | endif() |
22 | |
23 | install(PROGRAMS clang-format-bbedit.applescript |
24 | DESTINATION share/clang |
25 | COMPONENT clang-format) |
26 | install(PROGRAMS clang-format-diff.py |
27 | DESTINATION share/clang |
28 | COMPONENT clang-format) |
29 | install(PROGRAMS clang-format-sublime.py |
30 | DESTINATION share/clang |
31 | COMPONENT clang-format) |
32 | install(PROGRAMS clang-format.el |
33 | DESTINATION share/clang |
34 | COMPONENT clang-format) |
35 | install(PROGRAMS clang-format.py |
36 | DESTINATION share/clang |
37 | COMPONENT clang-format) |
38 | install(PROGRAMS git-clang-format |
39 | DESTINATION bin |
40 | COMPONENT clang-format) |
41 | |