C++ gradle native CMAKE plugin build arguments and multiple binary

Q1: How can can you pass cmake plugin build arguments: -DBUILD_WHATEVER=< value >
my guess is something like this :

cmake {
  ....
  arguments.set("-DBUILD_WHATEVER=<value>")
}

Q2: How do you handle multiple binaries (.so or .a) that the cmake produces? I am trying to build opencv with gradle cmake plugin, it produces many .so files, how do you define those here:

cmake {
    binary.set("libopencv_core.so") //one of the .so file
   ...    
}

these binary lib files definitions are needed by the publishing plugin