Maximizing measures for partially hyperbolic systems with compact center leaves