Begin transition to cmake.
Finished transfer to cmake.