summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-24 20:49:12 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-24 20:49:12 (GMT)
commit73f04d1409ec4dfcb3b8db3e104da2a894d019a2 (patch)
treee1578688252c8a50fb307d60045379a53a02d646 /Source/cmTarget.h
parentb5746484e4c396489b707e0f8b4d1f539e62a965 (diff)
downloadCMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.zip
CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.tar.gz
CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.tar.bz2
many fixes and cleanup and features
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index d72ec18..9fa1608 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -18,6 +18,7 @@
#include "cmStandardIncludes.h"
#include "cmCustomCommand.h"
+#include "cmSourceFile.h"
/** \class cmTarget
* \brief Represent a library or executable target loaded from a makefile.
@@ -44,13 +45,28 @@ public:
/**
* Get the list of the source lists used by this target
*/
- const std::vector<std::string> &GetSourceLists() const {return m_SourceLists;}
+ const std::vector<std::string> &GetSourceLists() const
+ {return m_SourceLists;}
std::vector<std::string> &GetSourceLists() {return m_SourceLists;}
+ /**
+ * Get the list of the source files used by this target
+ */
+ const std::vector<cmSourceFile> &GetSourceFiles() const
+ {return m_SourceFiles;}
+ std::vector<cmSourceFile> &GetSourceFiles() {return m_SourceFiles;}
+
+ /**
+ * Generate the SourceFilesList from the SourceLists. This should only be
+ * done once to be safe.
+ */
+ void GenerateSourceFilesFromSourceLists(const cmMakefile &mf);
+
private:
std::vector<cmCustomCommand> m_CustomCommands;
std::vector<std::string> m_SourceLists;
bool m_IsALibrary;
+ std::vector<cmSourceFile> m_SourceFiles;
};
typedef std::map<std::string,cmTarget> cmTargets;