Generate targets for each lit suite.
authorChris Bieneman <beanz@apple.com>
Wed, 18 Mar 2015 21:19:06 +0000 (21:19 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 18 Mar 2015 21:19:06 +0000 (21:19 +0000)
commit86ee151570e7156de4ff94e9854ba4ece7ce467c
tree63c92791cf03e9c0eb96ab753a08d4e08f61db9b
parent050f590a0c8895211687a6b750eec159f226a246
Generate targets for each lit suite.

Summary:
This change makes CMake scan for lit suites and generate a target for each lit test suite. The targets follow the format check-<project>-<suite path>.

For example:
check-llvm-unit - Runs the LLVM unit tests
check-llvm-codegen-arm - Runs the ARM codeine tests

Note: These targets are not generated during multi-configuration generators (i.e. Xcode and Visual Studio) because target clutter impacts UI usability.

Reviewers: chandlerc

Subscribers: aemerson, llvm-commits

Differential Revision: http://reviews.llvm.org/D8380

llvm-svn: 232671
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake