I made a cam but when I try to mechanical mate (cam) SolidWorks does not take it as a cam entity.
Have you tried searching in the forum for an answer ?
Also there are some great Youtube videos and tutorials.
Cam Mate Tutorial,, SolidWorks 2012,, HD - YouTube
You are trying to make a 'barrel cam'. You cannot use the Standard mechanical cam mate here. In mechanical cam mate the surfaces should be a series of tangent extruded faces (faces will be perpendicular to sketch plane). In your part it is not the case.
You have to use profile mate between the cam and a point in your follower.
Give it a shot. If you can't I can upload my files.
As Sachin has pointed, this is a barrel cam. Hence not working.
You can also use a coincident mates between that surface and a point on your follower.
Retrieving data ...