Moves the universal printer from gmock to gtest and refactors the cmake script for reusing in gmock (by Vlad Losev).