1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmInstallFilesGenerator.cxx,v $
6 Date: $Date: 2009-04-27 17:20:56 $
7 Version: $Revision: 1.11 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmInstallFilesGenerator.h"
21 //----------------------------------------------------------------------------
22 cmInstallFilesGenerator
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
,
30 cmInstallGenerator(dest
, configurations
, component
),
31 Files(files
), Programs(programs
),
32 FilePermissions(file_permissions
),
33 Rename(rename
), Optional(optional
)
37 //----------------------------------------------------------------------------
38 cmInstallFilesGenerator
39 ::~cmInstallFilesGenerator()
43 //----------------------------------------------------------------------------
44 void cmInstallFilesGenerator::GenerateScriptActions(std::ostream
& os
,
47 // Write code to install the files.
48 const char* no_dir_permissions
= 0;
49 this->AddInstallRule(os
,
51 ? cmTarget::INSTALL_PROGRAMS
52 : cmTarget::INSTALL_FILES
),
55 this->FilePermissions
.c_str(), no_dir_permissions
,
56 this->Rename
.c_str(), 0, indent
);