ENH: put the 64 bit paths first
[cmake.git] / Source / cmInstallFilesGenerator.cxx
blob79dffd1ca805394e68dd9daa80a0c72a5d91d2b4
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmInstallFilesGenerator.cxx,v $
5 Language: C++
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"
19 #include "cmTarget.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,
28 const char* rename,
29 bool optional):
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,
45 Indent const& indent)
47 // Write code to install the files.
48 const char* no_dir_permissions = 0;
49 this->AddInstallRule(os,
50 (this->Programs
51 ? cmTarget::INSTALL_PROGRAMS
52 : cmTarget::INSTALL_FILES),
53 this->Files,
54 this->Optional,
55 this->FilePermissions.c_str(), no_dir_permissions,
56 this->Rename.c_str(), 0, indent);