Add support for Ninja and Eclipse+Ninja testing in test_cmake.
Replace printing to stderr with logging warning.
Merge pull request #2007 from abergmeier/cmake_test_ninja

Add support for Ninja and Eclipse+Ninja testing in test_cmake.