This guide assumes you have a module ready to save the views but it does not have any Views integration or folder structure. Skip ahead if you've already created the folders and Views Hooks.
- Add the views folder to your module.
- Create a file called MODULENAME.views.inc inside the views folder.
- Add a default_views folder inside the views folder.
Your module directory structure should now resemble something like this: