Unbreak Qt3DRender OpenGL plugin unity-build


Exclude the imgui files from PCH (and therefore Unity) builds. In
unity builds, they were observed to hit the

   #error Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_ including imgui.h!

in imgui.h. But these files define some macros before they include
headers, so PCH should also be affected, thus use NO_PCH_SOURCES.

Create a variable to DRY the lists for SOURCES and NO_PCH_SOURCES.

Amends 01b416a07c49ba15f2d0a65712d38f300b763803.

Pick-to: 6.9 6.8 6.5
Change-Id: Ic2a23a50a1d6fa6792262dd16f0acf5dc0e51a51
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commitb7f44c134927ab741313989661f57f9c8786ee69
parentebda16f7d39bbdc348003d8d06287fada559bf17
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeTue, 31 Dec 2024 08:30:52 +0100