func CreateMocFile(mocPath string, src string) error {
	if !fileExists(src) {
		return fmt.Errorf("source file doesn't exists")
	}
	dst := "moc-" + fp.Base(src)
	dst = strings.TrimSuffix(dst, fp.Ext(dst)) + ".h"
	dst = fp.Join(fp.Dir(src), dst)
	cmdMoc := exec.Command(mocPath, "-o", dst, src)
	if btOutput, err := cmdMoc.CombinedOutput(); err != nil {
		return fmt.Errorf("%v: %s", err, btOutput)
	}
	return nil
}
CreateMocFile creates moc file from the specified source.
If destination is not specified, the moc file will be saved in
file "moc-" + source.name + ".h"
package generator
import (
	"fmt"
	"os/exec"
	fp "path/filepath"
	"strings"
)