`add_clang_tool` includes a call to `add_clang_executable`, but it also
sets up the install rule, and adds an `install-*` target. The latter is
required for using `LLVM_DISTRIBUTION_COMPONENTS`.
Differential Revision: https://reviews.llvm.org/D39522
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317150
91177308-0d34-0410-b5e6-
96231b3b80d8
Support
)
-add_clang_executable(clang-rename ClangRename.cpp)
+add_clang_tool(clang-rename ClangRename.cpp)
target_link_libraries(clang-rename
clangBasic
clangToolingRefactor
)
-install(TARGETS clang-rename RUNTIME DESTINATION bin)
-
install(PROGRAMS clang-rename.py
DESTINATION share/clang
COMPONENT clang-rename)