Execute checks PRE_LINK.

This ensures that they occurr after source files have been generated
but before the final target was linked, so that if errors are generated
as a result of the check process then the target won't be marked
as successfully built.
Merge pull request #3 from smspillaz/cppcheck-target-cmake.item_3

Execute checks PRE_LINK.