2013-03-20 17:53:23 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
|
|
|
|
add_clang_executable(clang-format
|
|
|
|
ClangFormat.cpp
|
|
|
|
)
|
|
|
|
|
2015-01-30 00:58:53 +08:00
|
|
|
set(CLANG_FORMAT_LIB_DEPS
|
2013-12-10 20:40:37 +08:00
|
|
|
clangBasic
|
2013-03-20 17:53:23 +08:00
|
|
|
clangFormat
|
2014-07-17 00:48:33 +08:00
|
|
|
clangRewrite
|
2014-10-30 08:44:01 +08:00
|
|
|
clangToolingCore
|
2013-03-20 17:53:23 +08:00
|
|
|
)
|
|
|
|
|
2015-01-30 00:58:53 +08:00
|
|
|
target_link_libraries(clang-format
|
|
|
|
${CLANG_FORMAT_LIB_DEPS}
|
|
|
|
)
|
|
|
|
|
|
|
|
if( LLVM_USE_SANITIZE_COVERAGE )
|
|
|
|
add_subdirectory(fuzzer)
|
|
|
|
endif()
|
|
|
|
|
2013-07-22 20:51:47 +08:00
|
|
|
install(TARGETS clang-format RUNTIME DESTINATION bin)
|
2013-11-15 06:48:06 +08:00
|
|
|
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)
|
2013-07-22 20:51:47 +08:00
|
|
|
install(PROGRAMS git-clang-format DESTINATION bin)
|