cmGeneratorTarget: also check included objects for Fortran modules

Fortran modules provided by objects in `$<TARGET_OBJECTS>` should also
count as "has Fortran modules" for the target referencing the objects.
1 file changed