1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmInstallDirectoryGenerator.cxx,v $
6 Date: $Date: 2008-01-28 13:38:35 $
7 Version: $Revision: 1.6 $
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 "cmInstallDirectoryGenerator.h"
21 //----------------------------------------------------------------------------
22 cmInstallDirectoryGenerator
23 ::cmInstallDirectoryGenerator(std::vector
<std::string
> const& dirs
,
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 cmInstallGenerator(dest
, configurations
, component
), Directories(dirs
),
31 FilePermissions(file_permissions
), DirPermissions(dir_permissions
),
32 LiteralArguments(literal_args
)
36 //----------------------------------------------------------------------------
37 cmInstallDirectoryGenerator
38 ::~cmInstallDirectoryGenerator()
42 //----------------------------------------------------------------------------
44 cmInstallDirectoryGenerator::GenerateScriptActions(std::ostream
& os
,
47 // Write code to install the directories.
48 bool not_optional
= false;
49 const char* no_properties
= 0;
50 const char* no_rename
= 0;
51 this->AddInstallRule(os
, cmTarget::INSTALL_DIRECTORY
,
53 not_optional
, no_properties
,
54 this->FilePermissions
.c_str(),
55 this->DirPermissions
.c_str(),
56 no_rename
, this->LiteralArguments
.c_str(),