Creating static library in Visual Studio 2012

I have a CUDA project of type “Static library” and I want to generate a .lib. Building from visual studio does generate .obj for each .cu file in the project but I need all of these to be linked into a static library. What setting should I use to obtain this?

Please let me know if you need further details.