"I'm glad to come here as I enjoy Aberdeen's style of play and it's great at this stage in my career," McNamara has said.
"I spoke to Jimmy and despite there being many other offers, he is the only manager I have actually had talks with.
"I know from playing against Aberdeen in the past that it was never an easy game."