Don't check GENERATED sources by default.

Add a CHECK_GENERATED option which allows the user to override
this behaviour.