How can I hook my own solver to GAMS?

This project has everything that is required to connect a solver to GAMS. There are example drivers for MIP (Cbc, Glpk), NLP (IpOpt), and MINLP (Bonmin) solvers. The project leader (Stefan Vigerske) is usually extremely helpful if there are any questions.