A Princeton Instruments PI-LCX 1300 charge-coupled device (CCD) camera used for X-ray spectrum measurements in laser-plasma experiments is calibrated using three radioactive sources and investigated with the Monte Carlo code Geant4. The exposure level is controlled to make the CCD work in single pho