Install the shower or tub enclosure before you begin measuring for your sliding doors. The tub will be a guideline for your measurements.
Use a tape measure to measure the top of the enclosure between each facing wall. This will give you the length of the shower frame. Make measurements in inches.
Measure the distance from the top of the enclosure to the ceiling. This will give you the clearance measurement for your shower doors.