packaging: Initial packaging
[platform/upstream/cmake.git] / Source / cmInstallDirectoryGenerator.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmInstallDirectoryGenerator_h
13 #define cmInstallDirectoryGenerator_h
14
15 #include "cmInstallGenerator.h"
16
17 /** \class cmInstallDirectoryGenerator
18  * \brief Generate directory installation rules.
19  */
20 class cmInstallDirectoryGenerator: public cmInstallGenerator
21 {
22 public:
23   cmInstallDirectoryGenerator(std::vector<std::string> const& dirs,
24                               const char* dest,
25                               const char* file_permissions,
26                               const char* dir_permissions,
27                               std::vector<std::string> const& configurations,
28                               const char* component,
29                               const char* literal_args,
30                               bool optional = false);
31   virtual ~cmInstallDirectoryGenerator();
32
33 protected:
34   virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
35   std::vector<std::string> Directories;
36   std::string FilePermissions;
37   std::string DirPermissions;
38   std::string LiteralArguments;
39   bool Optional;
40 };
41
42 #endif