Home | History | Annotate | Download | only in clang-format
      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   ${CLANG_FORMAT_LIB_DEPS}
     16   )
     17 
     18 if( LLVM_USE_SANITIZE_COVERAGE )
     19   add_subdirectory(fuzzer)
     20 endif()
     21 
     22 install(PROGRAMS clang-format-bbedit.applescript
     23   DESTINATION share/clang
     24   COMPONENT clang-format)
     25 install(PROGRAMS clang-format-diff.py
     26   DESTINATION share/clang
     27   COMPONENT clang-format)
     28 install(PROGRAMS clang-format-sublime.py
     29   DESTINATION share/clang
     30   COMPONENT clang-format)
     31 install(PROGRAMS clang-format.el
     32   DESTINATION share/clang
     33   COMPONENT clang-format)
     34 install(PROGRAMS clang-format.py
     35   DESTINATION share/clang
     36   COMPONENT clang-format)
     37 install(PROGRAMS git-clang-format
     38   DESTINATION bin
     39   COMPONENT clang-format)
     40