Exclude 3rdparty files from the list of catalog files


file(APPEND is significantly slower in CMake 3.27.1, most likely due to
a regression in CMake. As a result, appending the result of globing to
file_list can be very slow, e.g., when processing qtwebengine. With a
bit of rework, we can eliminate the need for APPEND-ing, and later
exclude the /3rdparty/ files since we don't need them anyway, similar to
doc/snippets/.

Fixes: QTBUG-115634
Change-Id: I34fa9dcd68c488c05a68aa69835dc59885f8599d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 087ca720a7e7784bd4ada57800d6016c823e94e8)
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit6c989c57d43cf99d31921ec5fd7fff31ffb2635b
parentdc8b77ab43452f08a1e29025ccc531ebd3195b97
authorAmir Masoud Abdol <amir.abdol@qt.io>
committerAmir Masoud Abdol <amir.abdol@qt.io>
commit timeFri, 4 Aug 2023 11:59:55 +0000