snippets: fix unity builds


The snippets define MyObject in multiple cpp files. That's fine for
snippets (at the risk of odr violations), but it breaks unity builds.
Disabling them entirely for snippets.

Pick-to: 6.8 6.9 6.10
Change-Id: I8c32404c6497956bec17231cd782cca380afb186
Reviewed-by: Lorn Potter <lorn.potter@qt.io>
commitde0ecad5010d5bf1c75b6e1848617a2b26c1c77e
parent186f1a99ed9e5589f1228095f670c676ab217dce
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeSun, 6 Jul 2025 20:08:09 +0800