How to get listing file when cross compile

This would probably work in most cases. Multi-config generators (IDEs) would be the main thing to watch out for.