cmMakefileGenerator.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #ifndef cmMakefileGenerator_h
  12. #define cmMakefileGenerator_h
  13. #include "cmStandardIncludes.h"
  14. class cmMakefile;
  15. class cmClassFile;
  16. /** \class cmMakefileGenerator
  17. * \brief Provide an abstract interface for classes generating makefiles.
  18. *
  19. * Subclasses of this abstract class generate makefiles for various
  20. * platforms.
  21. */
  22. class cmMakefileGenerator
  23. {
  24. public:
  25. /**
  26. * Set the cmMakefile instance from which to generate the makefile.
  27. */
  28. void SetMakefile(cmMakefile*);
  29. /**
  30. * Generate the makefile using the m_Makefile, m_CustomCommands,
  31. * and m_ExtraSourceFiles. All subclasses of cmMakefileGenerator
  32. * must implement this method.
  33. */
  34. virtual void GenerateMakefile() = 0;
  35. protected:
  36. cmMakefile* m_Makefile;
  37. };
  38. #endif