computing the moment of inertia



I was just wondering if anyone knows the best way to compute the
moment of inertia of a cube about a given axis.

Thank you.

.