cmInstallFilesGenerator.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 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 cmInstallFilesGenerator_h
  11. #define cmInstallFilesGenerator_h
  12. #include "cmInstallGenerator.h"
  13. class cmMakefile;
  14. /** \class cmInstallFilesGenerator
  15. * \brief Generate file installation rules.
  16. */
  17. class cmInstallFilesGenerator: public cmInstallGenerator
  18. {
  19. public:
  20. cmInstallFilesGenerator(cmMakefile* mf,
  21. std::vector<std::string> const& files,
  22. const char* dest, bool programs,
  23. const char* file_permissions,
  24. std::vector<std::string> const& configurations,
  25. const char* component,
  26. const char* rename,
  27. bool optional = false);
  28. virtual ~cmInstallFilesGenerator();
  29. protected:
  30. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  31. cmMakefile* Makefile;
  32. std::vector<std::string> Files;
  33. bool Programs;
  34. std::string FilePermissions;
  35. std::string Rename;
  36. bool Optional;
  37. };
  38. #endif