You need to create the dashboard as system dashboard to be included in a solution to be exported.
Just open the default solution (or the solution you are customizing) and inside the components you will see the Dashboards entry, create the dashboard starting from there.