cmLocalCommonGenerator.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2015 Kitware, Inc., Insight Software Consortium
  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. #ifndef cmLocalCommonGenerator_h
  11. #define cmLocalCommonGenerator_h
  12. #include "cmLocalGenerator.h"
  13. class cmCommonTargetGenerator;
  14. /** \class cmLocalCommonGenerator
  15. * \brief Common infrastructure for Makefile and Ninja local generators.
  16. */
  17. class cmLocalCommonGenerator: public cmLocalGenerator
  18. {
  19. public:
  20. cmLocalCommonGenerator(cmGlobalGenerator* gg,
  21. cmLocalGenerator* parent,
  22. cmState::Snapshot snapshot);
  23. ~cmLocalCommonGenerator();
  24. std::string const& GetConfigName() { return this->ConfigName; }
  25. protected:
  26. void SetConfigName();
  27. std::string ConfigName;
  28. friend class cmCommonTargetGenerator;
  29. };
  30. #endif