Generation is now completely inside the CMake.
Need to remove the current implementation