A complete gradle visual c++ example

I think to use gradle in a greather project and want to see simple complete Win32 Visual C++ example but I didnt find them.

The following things are not clear:

  1. How to define WINVER=0x0601 or things like this
  2. How to define user32.lib in linker args
  3. How to set precompiled header
    and so on

It would be great help, if you make a default console visual c++ and then define
the gradle files that we see how this can be handled.