Let $T:X \to X$ be a continuous function on a compact metric space. We say that $\mu$ is $T-$invariant if $\mu(T^{-1}(A))=\mu(A)$ for all $A \in \mathbb{B}_{X}$. We denote by $M(X,T)$ the space of all $T-$invariant measure which is a nonempty, compact and convex in weak* topology. Let $f:X \to \mathbb{R}$ be a continuous function. Denote $G(f)=\sup_{\mu \in M(X,T)} \int f d\mu$.
$\textbf{Question}:$ Why the supremum is always attained by a measure that belongs to the extreme set $M(X,T)$?
My attempt: I think that is related to the fact $M(X,T)$ is compact and convex in weak* topology, but I don't know why the measure must belong the extreme set $M(X,T)$?