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)
commite6308656a66a33de70168acf500e10d4945c0e38
tree3dce2e315540d35b85a5e7bcd7481d19ddb5b28d
parent59abfa10b712132cd0c40403dc540b21e8334b22
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235324 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/LLVM-Config.cmake
tools/llvm-mc/CMakeLists.txt