|
|
@@ -130,6 +130,13 @@ void cmLocalGenerator::GenerateInstallRules()
|
|
|
const char* dest = destination.c_str();
|
|
|
int type = l->second.GetType();
|
|
|
|
|
|
+ const char* preinstall = l->second.GetProperty("PRE_INSTALL_SCRIPT");
|
|
|
+ const char* postinstall = l->second.GetProperty("POST_INSTALL_SCRIPT");
|
|
|
+ if ( preinstall )
|
|
|
+ {
|
|
|
+ fout << "INCLUDE(" << preinstall << ")" << std::endl;
|
|
|
+ }
|
|
|
+
|
|
|
std::string fname;
|
|
|
const char* files;
|
|
|
// now install the target
|
|
|
@@ -226,6 +233,10 @@ void cmLocalGenerator::GenerateInstallRules()
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
+ if ( postinstall )
|
|
|
+ {
|
|
|
+ fout << "INCLUDE(" << postinstall << ")" << std::endl;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
cmMakefile* mf = this->GetMakefile();
|