You can store all exits the appropriate level in the protection glyph
Glyph of Protecting States (focus):
When you type the glyph, choose explosive runes or a glyph of spells.
Spell the glyph. You can store a level 3 or lower prepared spell in the glyph by casting it as part of creating the glyph.
If you create a spell glyph, you can store any fate up to the same level as the location you use for the protection glyph.
Any spell means that there are no restrictions (including longer cast times) as to the spell that can be cast with a protective glyph.
The secondary spell is cast as you are creation the glyph, not like you are molding the glyph. The glyph is a spell effect that you enter after you cast the spell (this is an effect that can only exist after a successful cast).
If we compare this with the contingency label which requires simultaneous casting (focus):
Choose a level 5 or lower spell that you can cast, which has a casting time of 1 action and which can target you. You cast this spell – called the contingent spell – as part of the spell casting, expanding the spell locations for both, but the contingent spell does not take effect.
The contingency wording requires that the quota spell be cast (i.e., the cast is completed) during the contingency launch.
Therefore, as part of the registration process, the secondary spell must be cast. This means that the total time spent casting spells for a successful spell glyph is 1 hour + the cast time of the spell to be stored.