[clang] Add build and install targets for clang libraries
authorShoaib Meenai <smeenai@fb.com>
Fri, 15 Feb 2019 15:59:04 +0000 (15:59 +0000)
committerShoaib Meenai <smeenai@fb.com>
Fri, 15 Feb 2019 15:59:04 +0000 (15:59 +0000)
commitd705864074e616d2a29c8490ed4cba3750791ab5
treee03e08315436cbda9bdc59839e100cfa05d8e335
parentb4ff1abae264396f4634f2fc26395279081a86bb
[clang] Add build and install targets for clang libraries

This is modeled after the existing llvm-libraries target. It's a
convenient way to include all clang libraries in a distribution.

This differs slightly from the llvm-libraries target in that it adds any
library added via add_clang_library, whereas llvm-libraries only
includes targets added via add_llvm_library that didn't use the MODULE
or BUILDTREE_ONLY arguments. add_clang_library doesn't appear to have
any equivalents of those arguments, so the conditions don't apply.

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

llvm-svn: 354141
clang/CMakeLists.txt
clang/cmake/modules/AddClang.cmake