Question: can pex pipe be glued?
Answer: Pex cannot be glued and there are no compression fittings for cpvc, at least nothing that could ne used in the house. You will need to attach to each type of pipe, an adapter to pipe thread. The PEX adapter will be crimp or whatever that brand of PEX uses, and the CPVC adapter will glue on.