cmInstallDirectoryGenerator.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmInstallDirectoryGenerator_h
  14. #define cmInstallDirectoryGenerator_h
  15. #include "cmInstallGenerator.h"
  16. /** \class cmInstallDirectoryGenerator
  17. * \brief Generate directory installation rules.
  18. */
  19. class cmInstallDirectoryGenerator: public cmInstallGenerator
  20. {
  21. public:
  22. cmInstallDirectoryGenerator(std::vector<std::string> const& dirs,
  23. const char* dest,
  24. const char* file_permissions,
  25. const char* dir_permissions,
  26. std::vector<std::string> const& configurations,
  27. const char* component,
  28. const char* literal_args,
  29. bool optional = false);
  30. virtual ~cmInstallDirectoryGenerator();
  31. protected:
  32. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  33. std::vector<std::string> Directories;
  34. std::string FilePermissions;
  35. std::string DirPermissions;
  36. std::string LiteralArguments;
  37. bool Optional;
  38. };
  39. #endif