summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-20 22:15:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-20 22:15:45 (GMT)
commit3859417d1a6b583b6c84806b109426a85cfface6 (patch)
tree48aa4a483fcdcb7b8f81b700bbb165ab49950636 /Source/cmTarget.h
parent80c6f0fdec23e53daebfcd8d331f1a44004b234e (diff)
downloadCMake-3859417d1a6b583b6c84806b109426a85cfface6.zip
CMake-3859417d1a6b583b6c84806b109426a85cfface6.tar.gz
CMake-3859417d1a6b583b6c84806b109426a85cfface6.tar.bz2
ENH: add target properties
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 1a26ba7..14ee770 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -125,6 +125,11 @@ public:
void AnalyzeLibDependencies( const cmMakefile& mf );
+ ///! Set/Get a property of this target file
+ void SetProperty(const char *prop, const char *value);
+ const char *GetProperty(const char *prop) const;
+ bool GetPropertyAsBool(const char *prop) const;
+
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.
@@ -177,7 +182,8 @@ private:
* dep_map.
*/
void GatherDependencies( const cmMakefile& mf, const std::string& lib,
- DependencyMap& dep_map );
+ DependencyMap& dep_map );
+
private:
std::vector<cmCustomCommand> m_CustomCommands;
@@ -190,7 +196,8 @@ private:
bool m_InAll;
std::string m_InstallPath;
std::set<cmStdString> m_Utilities;
- bool m_RecordDependencies;
+ bool m_RecordDependencies;
+ std::map<cmStdString,cmStdString> m_Properties;
};
typedef std::map<cmStdString,cmTarget> cmTargets;