summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-30 14:44:00 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-30 14:44:00 (GMT)
commit2da0c57d46d5b68e19b60c4e6560fbd80f808ab0 (patch)
tree92bda106078e740b25b5d3922a89db1a6f6a996b /Source/cmTarget.h
parent13143f51d2f7096efc90624045f2b9ae26cc1fcd (diff)
downloadCMake-2da0c57d46d5b68e19b60c4e6560fbd80f808ab0.zip
CMake-2da0c57d46d5b68e19b60c4e6560fbd80f808ab0.tar.gz
CMake-2da0c57d46d5b68e19b60c4e6560fbd80f808ab0.tar.bz2
added TARGET_LINK_LIBRARY command and support for debug and release libraries to link against
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index b9ba231..6164e28 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -82,6 +82,19 @@ public:
std::vector<cmSourceFile> &GetSourceFiles() {return m_SourceFiles;}
/**
+ * Get the list of the source files used by this target
+ */
+ enum LinkLibraryType {GENERAL, DEBUG, OPTIMIZED};
+ typedef std::vector<std::pair<std::string,LinkLibraryType> > LinkLibraries;
+ const LinkLibraries &GetLinkLibraries() const {return m_LinkLibraries;}
+ LinkLibraries &GetLinkLibraries() {return m_LinkLibraries;}
+
+ /**
+ * Merge Link LIbraries into this targets current list
+ */
+ void MergeLibraries(const LinkLibraries &ll);
+
+ /**
* Generate the SourceFilesList from the SourceLists. This should only be
* done once to be safe.
*/
@@ -92,6 +105,7 @@ private:
std::vector<std::string> m_SourceLists;
bool m_IsALibrary;
std::vector<cmSourceFile> m_SourceFiles;
+ LinkLibraries m_LinkLibraries;
};
typedef std::map<std::string,cmTarget> cmTargets;