Don't needlessly check variables before looping them.
Refactor out utility functions into util/CppCheckUtil.cmake
Merge pull request #21 from smspillaz/cppcheck_target_cmake.item_21

Some refactoring