General classical solutions in the CPN−1 model