set(LLVM_LINK_COMPONENTS support)
set(LLVM_USED_LIBS clangFormat clangTooling clangBasic clangAST)

add_clang_executable(clang-format
  ClangFormat.cpp
  )

target_link_libraries(clang-format
  clangFormat
  clangTooling
  clangBasic
  clangRewriteFrontend
  )

install(TARGETS clang-format RUNTIME DESTINATION bin)
install(PROGRAMS git-clang-format DESTINATION bin)

set(LLVM_LINK_COMPONENTS support)
set(LLVM_USED_LIBS clangFormat clangTooling clangBasic clangAST)

add_clang_executable(clang-format
  ClangFormat.cpp
  )

target_link_libraries(clang-format
  clangFormat
  clangTooling
  clangBasic
  clangRewriteFrontend
  )

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)
install(PROGRAMS clang-format-sublime.py DESTINATION share/clang)
install(PROGRAMS clang-format.el DESTINATION share/clang)
install(PROGRAMS clang-format.py DESTINATION share/clang)
install(PROGRAMS git-clang-format DESTINATION bin)

Install clang-format's editor integrations in $PREFIX/share/clang/
Install clang-format's editor integrations in $PREFIX/share/clang/

They were previously not part of the install target.

Differential Revision: http://llvm-reviews.chandlerc.com/D2154

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@194741 91177308-0d34-0410-b5e6-96231b3b80d8
