cmLocalGhsMultiGenerator.cxx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2015 Geoffrey Viola <[email protected]>
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmLocalGhsMultiGenerator.h"
  11. #include "cmGlobalGhsMultiGenerator.h"
  12. #include "cmGeneratorTarget.h"
  13. #include "cmMakefile.h"
  14. #include "cmGhsMultiTargetGenerator.h"
  15. #include "cmGeneratedFileStream.h"
  16. cmLocalGhsMultiGenerator::cmLocalGhsMultiGenerator(cmGlobalGenerator* gg,
  17. cmMakefile* mf)
  18. : cmLocalGenerator(gg, mf)
  19. {
  20. }
  21. cmLocalGhsMultiGenerator::~cmLocalGhsMultiGenerator() {}
  22. void cmLocalGhsMultiGenerator::Generate()
  23. {
  24. cmGeneratorTargetsType tgts = this->GetGeneratorTargets();
  25. for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end();
  26. ++l)
  27. {
  28. if (l->second->GetType() == cmState::INTERFACE_LIBRARY
  29. || l->second->IsImported())
  30. {
  31. continue;
  32. }
  33. cmGhsMultiTargetGenerator tg(l->second);
  34. tg.Generate();
  35. }
  36. }