cmInstallDirectoryGenerator.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 cmInstallDirectoryGenerator_h
  11. #define cmInstallDirectoryGenerator_h
  12. #include "cmInstallGenerator.h"
  13. /** \class cmInstallDirectoryGenerator
  14. * \brief Generate directory installation rules.
  15. */
  16. class cmInstallDirectoryGenerator: public cmInstallGenerator
  17. {
  18. public:
  19. cmInstallDirectoryGenerator(std::vector<std::string> const& dirs,
  20. const char* dest,
  21. const char* file_permissions,
  22. const char* dir_permissions,
  23. std::vector<std::string> const& configurations,
  24. const char* component,
  25. MessageLevel message,
  26. const char* literal_args,
  27. bool optional = false);
  28. virtual ~cmInstallDirectoryGenerator();
  29. protected:
  30. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  31. std::vector<std::string> Directories;
  32. std::string FilePermissions;
  33. std::string DirPermissions;
  34. std::string LiteralArguments;
  35. bool Optional;
  36. };
  37. #endif