Virtually all the music I buy now comes in the form of downloaded flac files. These have no cue sheets with them.

Some of the music needs to be played gaplessly, and I'm under the impression that flac files + cue sheets is a solution to this. If this is so, can anyone recommend a linux program that would enable me to generate cue sheets from the flac files on my hard disk? I have seen software that creates cue files from music on a CD, but I can't find anything that does it from a folder of flac files on the hard disk.