Maybe this answers your question: Creating project files from a package's command line interface - #7 by sinoroc