diff options
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index eb455fa..bb4140b 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -157,7 +157,15 @@ public: const char *GetProperty(const char *prop); bool GetPropertyAsBool(const char *prop); - const char* GetDirectory(); + /** Get the directory in which this target will be built. If the + configuration name is given then the generator will add its + subdirectory for that configuration. Otherwise just the canonical + output directory is given. */ + const char* GetDirectory(const char* config = 0); + + /** Get the location of the target in the build tree for the given + configuration. This location is suitable for use as the LOCATION + target property. */ const char* GetLocation(const char* config); /** @@ -222,6 +230,9 @@ public: bool HaveBuildTreeRPATH(); bool HaveInstallTreeRPATH(); + std::string GetInstallNameDirForBuildTree(const char* config); + std::string GetInstallNameDirForInstallTree(const char* config); + private: /** * A list of direct dependencies. Use in conjunction with DependencyMap. |