There are ways to make a mechanical grinder to do the job and ways to make builtup cams, but this is one job where computer control really makes sense. A specially developed Sherline software program allows you to input measurements taken from your cam drawings and output the gcode needed to run the CNC stepper motors that control the rotation of the cam and the shape of the lobe.