Add targets to cmake for specific target components.
authorPete Cooper <peter_cooper@apple.com>
Mon, 20 Apr 2015 18:22:05 +0000 (18:22 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 20 Apr 2015 18:22:05 +0000 (18:22 +0000)
commit468d6d7fa6ea9f323066f2451ca519d7f5feb2f5
tree6600d2b3cac803a0d80ecc7e9c882668e69cdefc
parent848af387d87b4c1d31191bfcdf02186f12c1b319
Add targets to cmake for specific target components.

This adds the following targets to cmake.  These can be used to build and link only specific parts of a backend, instead of having to link the whole backend.

- AllTargetsAsmPrinters, AllTargetsAsmParsers, AllTargetsDescs, AllTargetsDisassemblers, AllTargetsInfos

A typical use for these is instead of linking ${LLVM_TARGETS_TO_BUILD}.  This commit changes llvm-mc to show how to use the new targets.

Reviewed by Chris Bieneman.

llvm-svn: 235324
llvm/cmake/modules/LLVM-Config.cmake
llvm/tools/llvm-mc/CMakeLists.txt