Skip to content
Snippets Groups Projects
Commit 96ee7ab0 authored by Chris Bieneman's avatar Chris Bieneman
Browse files

[CMake] Add install-clang-format target by migrating to add_clang_tool

This change migrates clang-format to add_clang_tool which makes a component-based install target. To support component-based installation the extra installed scripts all need to have the "clang-format" component too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261680 91177308-0d34-0410-b5e6-96231b3b80d8
parent 41218815
No related branches found
No related tags found
No related merge requests found
set(LLVM_LINK_COMPONENTS support)
add_clang_executable(clang-format
add_clang_tool(clang-format
ClangFormat.cpp
)
......@@ -19,10 +19,21 @@ 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)
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(PROGRAMS clang-format-bbedit.applescript
DESTINATION share/clang
COMPONENT clang-format)
install(PROGRAMS clang-format-diff.py
DESTINATION share/clang
COMPONENT clang-format)
install(PROGRAMS clang-format-sublime.py
DESTINATION share/clang
COMPONENT clang-format)
install(PROGRAMS clang-format.el
DESTINATION share/clang
COMPONENT clang-format)
install(PROGRAMS clang-format.py
DESTINATION share/clang
COMPONENT clang-format)
install(PROGRAMS git-clang-format
DESTINATION bin
COMPONENT clang-format)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment