Metronome settings can be entered as follows
\tempo duration = per-minute
In the MIDI output, they are interpreted as a tempo change. In the layout output, a metronome marking is printed
\tempo 8.=120 c''1
Program reference: MetronomeChangeEvent.
This page is for LilyPond-2.4.5 (stable-branch).