This PR adds general unit tests (using Google Test) to xoreos.
It's not 100% coverage, far from it. There's currently 1034 indidual tests in 70 file (with ~ one class per file), covering most of Common, many of the Aurora classes and 3 files for image decoders.
Included in the changeset is also some CMake changes. @berenm, if you could double-check that what I did there makes sense, that would be great. Thanks.
I'm also enabling the unit tests in Travis CI and AppVeyor. The former seems to work, but for some reason, AppVeyor throws errors there. "Exception: Other", whatever that is supposed to mean. I don't suppose you might know what the issues is there, or how I can get more usual debug info, @berenm? Because that is just weird :/.
Going forward, more unit tests would be great. For example:
Likewise, new or changed functions in classes already covered by the tests should now be getting unit tests as well.
Comments, criticism, etc. welcome, of course. :)
The ones that do work are:
All other unit tests fail. The ones that work are all small, contained classes/templates and might not even need any DLL at all...