Hot glue really is the go-to adhesive when working with foam. It holds up really well, is weather proof for the most part and it's very easy to use while being relatively cheap. If you are looing for an alternative, maybe Liquid Nails would be one way to go or look into using Epoxies. Honestly though, hot glue is the way to go.