[clang-tools-extra] [cmake] Use add_clang_tool() to install tools
authorMichal Gorny <mgorny@gentoo.org>
Fri, 4 Oct 2019 05:40:29 +0000 (05:40 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 4 Oct 2019 05:40:29 +0000 (05:40 +0000)
commitcb46b69e3eeae23b99f646e6dd23b1f05f6d8671
tree3b227a6883236f1ec236f856ee48c50dd96c7826
parent7f379a3366ca8e80f891f7b9a51d79b81834741e
[clang-tools-extra] [cmake] Use add_clang_tool() to install tools

Replace add_clang_executable() calls with add_clang_tool() that takes
care of creating correct, distribution-friendly install target.  While
at it, remove redundant install calls.

This change also causes clang-move and pp-trace to be installed.

Differential Revision: https://reviews.llvm.org/D68423

llvm-svn: 373694
clang-tools-extra/clang-apply-replacements/tool/CMakeLists.txt
clang-tools-extra/clang-change-namespace/tool/CMakeLists.txt
clang-tools-extra/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt
clang-tools-extra/clang-include-fixer/tool/CMakeLists.txt
clang-tools-extra/clang-move/tool/CMakeLists.txt
clang-tools-extra/clang-query/tool/CMakeLists.txt
clang-tools-extra/pp-trace/CMakeLists.txt