What you need to do is "record" your midi tracks - this will convert them to wave files, which is what you need to burn on a CD. I'm not that familiar with Cakewalk, but if it's anything like Cubase, which I use, you should be able to set up an audio track, then play your midi tracks and record...