I created a project on top of Qt (so the source is written in C ++), and I wanted to try Gradle to automatically build on it. It took me a while to get detailed information on setting up a multi-project build (there is an executable file and two libraries), and now I'm trying to tell the cpp-exe and cpp-lib plugin how my source tree is structured.
I set up a task that should print all the source sets (should there be at least default permissions?), And it looks like this:
task projectinfo { description = "Informations about the current project" group = INFORMATIONS_GROUP doFirst { task -> print ("""${task.project.sourceSets.all}""") }
If I run this task, Gradle tells me that there is no "sourceSets" property for the project. The plugin documentation tells me that you can configure the location of the sources, but not how.
So my question is: how can I tell the Gradle cpp plugin which source files to use. If there is any documentation on the cpp plugin other than API documentation, and a Gradle user guide that will also help.
Haster
source share