Associate a object to the mouse cursor

I am a newbie of opengl and sorry for my bad english.
I am developing a simple application for a university project.
I want make a simple game where the player can use a hammer for kill moles.
I imported the hammer from a file .3ds and i have apply the animation.
I want that the hammers is connect to the mouse, so if i move the mouse, the hammer too!
Anyone can help me?