Normally you would have in each file a license header and depending on which license the file ia it would have a different header if the licenses are mixed.
Often we don't copy the library source code into the same git repo but use some package manager which installs them for the user.
In that case if the whole git repo is the same license then often we just have a LICENSE file in the root which ia mentioned in the readme.
Back in the day we made https://github.com/Pelagicore/OpenSourceTemplates
It has links to SPDX descriptions ect which are best practices in this regard.