LAHORE, Pakistan — A Pakistani court sentenced four men to death on Wednesday for the murder of Farzana Parveen, a pregnant woman who was bludgeoned to death in May for marrying the man of her choice.

The killing of Ms. Parveen, 25, generated global outrage partly because it occurred in broad daylight on a public street outside the high court in Lahore, Pakistan’s second-largest city.

Her father, a brother and two cousins were found guilty of the killing by the court, said Abdul Samad, a senior state prosecutor, after Wednesday’s hearing. Another cousin was sentenced to 10 years in prison on charges of abetting the crime.

Ms. Parveen enraged her family in January when she married Muhammad Iqbal, a widower from a neighboring village, instead of the cousin who had been chosen by her parents.