summaryrefslogtreecommitdiff
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-10 13:54:36 -0500
committerBrad King <brad.king@kitware.com>2006-02-10 13:54:36 -0500
commitb8a33fb424aa28b710e0ec170814ac380ee057db (patch)
tree23c06b61601d90d4703271fed4f90d2d3df7fee7 /Source/cmMakefile.h
parentd2621064e27e38eba984c994746eaee40bc09ebc (diff)
downloadcmake-b8a33fb424aa28b710e0ec170814ac380ee057db.tar.gz
ENH: Added INSTALL command as a placeholder for a future generic install specification interface. Currently it supports only a SCRIPT option specifying a script to run during the install stage.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index f6418ba870..cdd0adc495 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -671,7 +671,12 @@ public:
///! Set/Get the preorder flag
void SetPreOrder(bool p) { this->PreOrder = p; }
bool GetPreOrder() { return this->PreOrder; }
-
+
+ /** Add a script file to be invoked during installation. */
+ void AddInstallScript(const char* script)
+ { m_InstallScripts.push_back(script); }
+ std::vector<std::string> const& GetInstallScripts()
+ { return m_InstallScripts; }
protected:
// add link libraries and directories to the target
void AddGlobalLinkInformation(const char* name, cmTarget& target);
@@ -704,6 +709,9 @@ protected:
cmTarget::LinkLibraries m_LinkLibraries;
+ // List of install-time scripts. This should not be inherited.
+ std::vector<std::string> m_InstallScripts;
+
std::string m_IncludeFileRegularExpression;
std::string m_ComplainFileRegularExpression;
std::vector<std::string> m_SourceFileExtensions;