Initial import of clang-tidy-target-cmake.

Add some basic tests and a basic wrapper around clang-tidy
so that an error exit code is reported when warnings are detected.

Allow allow per-target checks to be specified.