summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-12-13 17:19:59 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-12-13 17:19:59 (GMT)
commit5d11564c35b7c7f7a578e848b926a63746c3bcf3 (patch)
tree0abed46cb0dc0ad9f3d458d43188958cb15f9f63 /Source/cmSourceFile.h
parente1a142f033f3842e19cd207c32fad384a0384772 (diff)
downloadCMake-5d11564c35b7c7f7a578e848b926a63746c3bcf3.zip
CMake-5d11564c35b7c7f7a578e848b926a63746c3bcf3.tar.gz
CMake-5d11564c35b7c7f7a578e848b926a63746c3bcf3.tar.bz2
ENH: allow source file properties to chain to Directories and up
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 0b636ef..7f00483 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -21,6 +21,7 @@
#include "cmPropertyMap.h"
class cmake;
+class cmMakefile;
/** \class cmSourceFile
* \brief Represent a class loaded from a makefile.
@@ -114,6 +115,10 @@ public:
// Define the properties
static void DefineProperties(cmake *cm);
+ ///! Set the cmMakefile that owns this target
+ void SetMakefile(cmMakefile *mf);
+ cmMakefile *GetMakefile() { return this->Makefile;};
+
private:
cmPropertyMap Properties;
cmCustomCommand *CustomCommand;
@@ -122,6 +127,10 @@ private:
std::string SourceExtension;
std::vector<std::string> Depends;
std::string SourceNameWithoutLastExtension;
+
+ // The cmMakefile instance that owns this source file. This should
+ // always be set.
+ cmMakefile* Makefile;
};
#endif