1 set(LLVM_LINK_COMPONENTS support) 2 set(LLVM_USED_LIBS clangFormat clangTooling clangBasic clangAST) 3 4 add_clang_executable(clang-format 5 ClangFormat.cpp 6 ) 7 8 target_link_libraries(clang-format 9 clangFormat 10 clangTooling 11 clangBasic 12 clangRewriteFrontend 13 ) 14 15 install(TARGETS clang-format RUNTIME DESTINATION bin) 16 install(PROGRAMS git-clang-format DESTINATION bin) 17