summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-17 20:11:18 (GMT)
committerBrad King <brad.king@kitware.com>2005-08-17 20:11:18 (GMT)
commitd392acb4e65e2ce133acf4a07dba983060f58725 (patch)
tree94e70b90a43f93849beccb3fb45131d5927a971b /Source/cmTarget.h
parent78112eef25772968412c32026b6a98f3817afe8d (diff)
downloadCMake-d392acb4e65e2ce133acf4a07dba983060f58725.zip
CMake-d392acb4e65e2ce133acf4a07dba983060f58725.tar.gz
CMake-d392acb4e65e2ce133acf4a07dba983060f58725.tar.bz2
ENH: Added versioned executable support. This partially addresses bug#2143. Also made OUTPUT_NAME work when installing executables.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 17961fe..c1c68e9 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -186,6 +186,19 @@ public:
std::string& sharedName,
std::string& sharedSOName,
std::string& sharedRealName);
+
+ /** Get the names of the executable needed to generate a build rule
+ that takes into account executable version numbers. This should
+ be called only on an executable target. */
+ void GetExecutableNames(cmMakefile* mf, std::string& name,
+ std::string& realName);
+
+ /** Get the names of the executable used to remove existing copies
+ of the executable from the build tree either before linking or
+ during a clean step. This should be called only on an
+ executable target. */
+ void GetExecutableCleanNames(cmMakefile* mf, std::string& name,
+ std::string& realName);
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.
@@ -249,6 +262,10 @@ private:
std::string& soName,
std::string& realName,
TargetType type);
+ void GetExecutableNamesInternal(cmMakefile* mf,
+ std::string& name,
+ std::string& realName,
+ TargetType type);
// update the value of the LOCATION var
void UpdateLocation();