Home | History | Annotate | Download | only in clang-format
      1 set(LLVM_LINK_COMPONENTS support)
      2 
      3 add_clang_executable(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(TARGETS clang-format RUNTIME DESTINATION bin)
     23 install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang)
     24 install(PROGRAMS clang-format-diff.py DESTINATION share/clang)
     25 install(PROGRAMS clang-format-sublime.py DESTINATION share/clang)
     26 install(PROGRAMS clang-format.el DESTINATION share/clang)
     27 install(PROGRAMS clang-format.py DESTINATION share/clang)
     28 install(PROGRAMS git-clang-format DESTINATION bin)
     29