cmExtraCodeBlocksGenerator.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. Copyright (c) 2004 Alexander Neundorf, [email protected]. All rights reserved.
  9. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  10. This software is distributed WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE. See the above copyright notices for more information.
  13. =========================================================================*/
  14. #ifndef cmExtraCodeBlocksGenerator_h
  15. #define cmExtraCodeBlocksGenerator_h
  16. #include "cmExternalMakefileProjectGenerator.h"
  17. class cmLocalGenerator;
  18. class cmMakefile;
  19. /** \class cmExtraCodeBlocksGenerator
  20. * \brief Write CodeBlocks project files for Makefile based projects
  21. *
  22. * This generator is in early alpha stage.
  23. */
  24. class cmExtraCodeBlocksGenerator : public cmExternalMakefileProjectGenerator
  25. {
  26. public:
  27. cmExtraCodeBlocksGenerator();
  28. virtual void SetGlobalGenerator(cmGlobalGenerator* generator);
  29. virtual const char* GetName() const
  30. { return cmExtraCodeBlocksGenerator::GetActualName();}
  31. static const char* GetActualName() { return "CodeBlocks";}
  32. static cmExternalMakefileProjectGenerator* New()
  33. { return new cmExtraCodeBlocksGenerator; }
  34. /** Get the documentation entry for this generator. */
  35. virtual void GetDocumentation(cmDocumentationEntry& entry,
  36. const char* fullName) const;
  37. virtual void Generate();
  38. private:
  39. void CreateProjectFile(const std::vector<cmLocalGenerator*>& lgs);
  40. void CreateNewProjectFile(const std::vector<cmLocalGenerator*>& lgs,
  41. const std::string& filename);
  42. };
  43. #endif