title: Configuring cpp sources in gradle
body: <p>I have set up a project on top of Qt (so source is written in C++) and I wanted to try Gradle for automatic builds on that. It took me some time to get into the details of configuring a multi project build (there is an executable and two libs) and now I am trying to tell the <code>cpp-exe</code> and the <code>cpp-lib</code> plugin how my source tree is structured. </p>
  
  <p>I have set up a task that should print all of the source sets (there should be at least the default ones right?) and it looks like this:</p>
  
  <pre><code>task projectinfo {
  description = "Informations about the current project"
  group = INFORMATIONS_GROUP
  
  doFirst {
      task -&gt; print ("""${task.project.sourceSets.all}""")
  }
  </code></pre>
  
  <p>If I run this task Gradle tells me that there is no property "sourceSets" for the project. <a href="http://www.gradle.org/docs/current/userguide/cpp.html#N147EC" rel="nofollow noreferrer">The documentation of the plugin</a> tells me that it is possible to customize the source locations, but not how. </p>
  
  <p>So my question would be: How can I tell the Gradle <code>cpp</code> plugin which source files to use. If there is any documentation about the <code>cpp</code> plugin apart from its API documentation and the Gradle user guide that would be helping too.</p>