The following code doesn’t appear to do anything:
binary.tasks.findAll({it.name == "${taskName}"}).each { task ->
binary.inputs.withType(CppSourceSet) { sourceset ->
sourceset.generatedBy(task)
}
}
How can I add generated sources to a sourceset such that the task is run before compilation?