Perform the exclusion earlier


Move the exclusion after file(GLOB_RECURSIVE, and use its logic to
exclude some default exclusion paths, i.e., `/doc/snippets/`,
`/3rdparty`.

Change-Id: Ie93c660b5117896e399a478477a57c16bcf8add6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit223d1f66d6af9e60d765799e6c7d340ea2fcb445
parent78b41a37f44ddeb217faa5157ff4f8e2b567a1e9
authorAmir Masoud Abdol <amir.abdol@qt.io>
committerAmir Masoud Abdol <amir.abdol@qt.io>
commit timeFri, 4 Aug 2023 12:00:13 +0000