private NativeBinaryResolveResult resolve(Collection<? extends DependentSourceSet> sourceSets) {
   Set<? super Object> allLibs = new LinkedHashSet<Object>(libs);
   for (DependentSourceSet dependentSourceSet : sourceSets) {
     allLibs.addAll(dependentSourceSet.getLibs());
   }
   NativeBinaryResolveResult resolution = new NativeBinaryResolveResult(this, allLibs);
   resolver.resolve(resolution);
   return resolution;
 }
    @Finalize
    // Must run after test binaries have been created (currently in CUnit
    // plugin)
    void attachTestedBinarySourcesToTestBinaries(BinaryContainer binaries) {
      for (NativeTestSuiteBinarySpec testSuiteBinary :
          binaries.withType(NativeTestSuiteBinarySpec.class)) {
        NativeBinarySpec testedBinary = testSuiteBinary.getTestedBinary();
        testSuiteBinary.source(testedBinary.getSource());

        for (DependentSourceSet testSource :
            testSuiteBinary.getSource().withType(DependentSourceSet.class)) {
          testSource.lib(testedBinary.getSource());
        }
      }
    }