cmake: Regenerate docs only on source file changes.