cpp: Add xsd-fu generation dependencies

Regenerate sources on demand, not when running cmake intially.
This also permits regeneration when xsd-fu or the templates
are changed.
cpp: test/headers uses gtest
cpp: test/enum uses gtest
test/color: Use const parameter references