diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-23 15:31:43 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-23 15:31:43 (GMT) |
commit | dbebd0a276490134b9df38cc3c69b1104f2ea71a (patch) | |
tree | 5fe00a12d37fad05dfc91ceef58d6ef3e5763d27 /Source/cmTarget.h | |
parent | fdb3d30dca08b90b8db5186fb8bcdc424984d6db (diff) | |
download | CMake-dbebd0a276490134b9df38cc3c69b1104f2ea71a.zip CMake-dbebd0a276490134b9df38cc3c69b1104f2ea71a.tar.gz CMake-dbebd0a276490134b9df38cc3c69b1104f2ea71a.tar.bz2 |
added install rules
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index a0faf69..5e8c989 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -54,7 +54,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. class cmTarget { public: - enum TargetType { EXECUTABLE, WIN32_EXECUTABLE, LIBRARY, UTILITY }; + enum TargetType { EXECUTABLE, WIN32_EXECUTABLE, LIBRARY, UTILITY, INSTALL }; + /** * Return the type of target. */ @@ -99,9 +100,16 @@ public: typedef std::vector<std::pair<std::string,LinkLibraryType> > LinkLibraries; const LinkLibraries &GetLinkLibraries() const {return m_LinkLibraries;} LinkLibraries &GetLinkLibraries() {return m_LinkLibraries;} + + /** + * Set the path where this target should be installed. This is relative to + * INSTALL_PREFIX + */ + std::string GetInstallPath() const {return m_InstallPath;} + void SetInstallPath(const char *name) {m_InstallPath = name;} /** - * Merge Link LIbraries into this targets current list + * Merge Link Libraries into this targets current list */ void MergeLibraries(const LinkLibraries &ll); @@ -118,6 +126,7 @@ private: std::vector<cmSourceFile> m_SourceFiles; LinkLibraries m_LinkLibraries; bool m_InAll; + std::string m_InstallPath; }; typedef std::map<std::string,cmTarget> cmTargets; |