C is multiplicative quantum number. So, once you know C of a single pion, you just need to perform C^n for n pions system. It is same for P. So, C(pion)^n P(pion)^n (-1)^L is total CP eigenvalue.
If you ask how we can know C or P eigenvalue of single particle such as pion, I would answer that we...