diff options
Diffstat (limited to 'tools/clang-format/CMakeLists.txt')
-rw-r--r-- | tools/clang-format/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/clang-format/CMakeLists.txt b/tools/clang-format/CMakeLists.txt index 6a24e138efcf1..6ef0c2280f4e4 100644 --- a/tools/clang-format/CMakeLists.txt +++ b/tools/clang-format/CMakeLists.txt @@ -4,13 +4,21 @@ add_clang_executable(clang-format ClangFormat.cpp ) -target_link_libraries(clang-format +set(CLANG_FORMAT_LIB_DEPS clangBasic clangFormat clangRewrite clangToolingCore ) +target_link_libraries(clang-format + ${CLANG_FORMAT_LIB_DEPS} + ) + +if( LLVM_USE_SANITIZE_COVERAGE ) + add_subdirectory(fuzzer) +endif() + install(TARGETS clang-format RUNTIME DESTINATION bin) install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang) install(PROGRAMS clang-format-diff.py DESTINATION share/clang) |