It was very easy to forgot to check against all language file extensions. This updates the internal API to have a unified API.
Teach cmGlobalGenerator::CheckTargets to include OBJECT_LIBRARY targets in the check for source file existence. Extend the RunCMake.ObjectLibrary test to cover this case.