Imported Upstream version 2.8.12.2
[platform/upstream/cmake.git] / Source / cmInstallFilesGenerator.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 cmInstallFilesGenerator_h
13 #define cmInstallFilesGenerator_h
14
15 #include "cmInstallGenerator.h"
16
17 /** \class cmInstallFilesGenerator
18  * \brief Generate file installation rules.
19  */
20 class cmInstallFilesGenerator: public cmInstallGenerator
21 {
22 public:
23   cmInstallFilesGenerator(std::vector<std::string> const& files,
24                           const char* dest, bool programs,
25                           const char* file_permissions,
26                           std::vector<std::string> const& configurations,
27                           const char* component,
28                           const char* rename,
29                           bool optional = false);
30   virtual ~cmInstallFilesGenerator();
31
32 protected:
33   virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
34   std::vector<std::string> Files;
35   bool Programs;
36   std::string FilePermissions;
37   std::string Rename;
38   bool Optional;
39 };
40
41 #endif