Saint-Martin-de-Lerm (; ) is a commune in the Gironde department in Nouvelle-Aquitaine in southwestern France.