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>
| commit | de0ecad5010d5bf1c75b6e1848617a2b26c1c77e |
| parent | 186f1a99ed9e5589f1228095f670c676ab217dce |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Sun, 6 Jul 2025 20:08:09 +0800 |