summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-28 03:13:25 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-28 03:13:25 (GMT)
commitaf95f61d76f2a9e86aed35adae5302c8c60fdb35 (patch)
tree7ca8e89bb2b0f6d634f4858890041e9480fa67e8 /Source/cmTarget.h
parent341853c887bcf54a5476bec71216ef34dd5b9295 (diff)
downloadCMake-af95f61d76f2a9e86aed35adae5302c8c60fdb35.zip
CMake-af95f61d76f2a9e86aed35adae5302c8c60fdb35.tar.gz
CMake-af95f61d76f2a9e86aed35adae5302c8c60fdb35.tar.bz2
ENH: Created method cmTarget::GetExportMacro to centralize computation of the export symbol name. This removes duplicate code from all the generators. Also enabled the export definition for executable targets with the ENABLE_EXPORTS property set.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 028231a..5cda102 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -259,6 +259,10 @@ public:
// Compute the OBJECT_FILES property only when requested
void ComputeObjectFiles();
+ /** Get the macro to define when building sources in this target.
+ If no macro should be defined null is returned. */
+ const char* GetExportMacro();
+
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.
@@ -359,6 +363,7 @@ private:
std::string OutputDirImplib;
std::string Directory;
std::string Location;
+ std::string ExportMacro;
std::set<cmStdString> Utilities;
bool RecordDependencies;
cmPropertyMap Properties;