cmLocalCommonGenerator.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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, cmMakefile* mf,
  21. cmOutputConverter::RelativeRoot wd);
  22. ~cmLocalCommonGenerator();
  23. std::string const& GetConfigName() { return this->ConfigName; }
  24. cmOutputConverter::RelativeRoot GetWorkingDirectory() const
  25. {
  26. return this->WorkingDirectory;
  27. }
  28. protected:
  29. cmOutputConverter::RelativeRoot WorkingDirectory;
  30. void SetConfigName();
  31. std::string ConfigName;
  32. friend class cmCommonTargetGenerator;
  33. };
  34. #endif