Moshe,
No, it's unfortunately not possible and I am now aware of a utility that creates a MEX wrapper automatically from C++ code. You will have to write the MEX function yourself and do some input and output processing.
If you are new to MEX files, I would suggest to read the doc at the link below to get you started: