@Mutate
public void configureCUnitTestSuiteSources(ProjectSourceSet projectSourceSet, TestSuiteContainer testSuites, @Path("buildDir") File buildDir) {
for (final CUnitTestSuiteSpec suite : testSuites.withType(CUnitTestSuiteSpec.class)) {
FunctionalSourceSet suiteSourceSet = suite.getSources();
CSourceSet launcherSources = suiteSourceSet.maybeCreate(CUNIT_LAUNCHER_SOURCE_SET, CSourceSet.class);
File baseDir = new File(buildDir, String.format("src/%s/cunitLauncher", suite.getName()));
launcherSources.getSource().srcDir(new File(baseDir, "c"));
launcherSources.getExportedHeaders().srcDir(new File(baseDir, "headers"));
CSourceSet testSources = suiteSourceSet.maybeCreate("c", CSourceSet.class);
testSources.lib(launcherSources);
}
}