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