cmLocalCommonGenerator.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
  29. std::string const& config);
  30. protected:
  31. cmOutputConverter::RelativeRoot WorkingDirectory;
  32. void SetConfigName();
  33. std::string ConfigName;
  34. friend class cmCommonTargetGenerator;
  35. };
  36. #endif