diff options
author | Brad King <brad.king@kitware.com> | 2006-02-10 13:54:36 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-10 13:54:36 -0500 |
commit | b8a33fb424aa28b710e0ec170814ac380ee057db (patch) | |
tree | 23c06b61601d90d4703271fed4f90d2d3df7fee7 /Source/cmMakefile.h | |
parent | d2621064e27e38eba984c994746eaee40bc09ebc (diff) | |
download | cmake-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.h | 10 |
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; |