ENH: Added named component installation implementation. Installation behavior should be unchanged unless -DCOMPONENT=<name> is specified when cmake_install.cmake is invoked.

This commit is contained in:
Brad King
2006-03-30 13:33:48 -05:00
parent 3cf3fc510f
commit 08b14163ee
12 changed files with 203 additions and 27 deletions
+7 -3
View File
@@ -22,9 +22,11 @@
cmInstallFilesGenerator
::cmInstallFilesGenerator(std::vector<std::string> const& files,
const char* dest, bool programs,
const char* permissions, const char* rename):
const char* permissions,
const char* component,
const char* rename):
Files(files), Destination(dest), Programs(programs),
Permissions(permissions), Rename(rename)
Permissions(permissions), Component(component), Rename(rename)
{
}
@@ -48,6 +50,8 @@ void cmInstallFilesGenerator::GenerateScript(std::ostream& os)
? cmTarget::INSTALL_PROGRAMS
: cmTarget::INSTALL_FILES), fi->c_str(),
not_optional, no_properties,
this->Permissions.c_str(), this->Rename.c_str());
this->Permissions.c_str(),
this->Component.c_str(),
this->Rename.c_str());
}
}