I use royal icing as a "glue" at times for gum paste... Used it on small fondant pieces. I've also painted on royal icing directly onto the gingerbread pieces then attach gum paste to it (as siding). The house I created last year with that technique is still standing with everything still attached.