There is a bug so cross compiling Qt projects with cmake v2.8.4 will not work as expected. The Qt libraries and header will not be found. I send a patch upstream that is applied to the git repository. Could we add the patch to ${FILESDIR} and create a cmake-2.8.4-r1.ebuild that is using that patch? So not everyone that wants cross compiling their Qt projects have to create a local overlay. Reproducible: Always
Created attachment 265511 [details, diff] Fix finding headers and libraries for cross Qt4 Patch that is applied upstream and fix finding of Qt4 files for cross compiling.
Here you can found the corresponding thread in the cmake mailing list. http://www.mail-archive.com/cmake@cmake.org/msg35178.html
Patch added in main tree.