diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-09 12:25:45 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-09 12:25:45 (GMT) |
commit | 7f11536704d9f971cf5c8b0a2b490ccc6af58588 (patch) | |
tree | 05b5b24050a629bf9ceb59d743f77ca909448229 /Source/cmTarget.h | |
parent | 5af310502142252995ad5d74e66355be4094b7cc (diff) | |
download | CMake-7f11536704d9f971cf5c8b0a2b490ccc6af58588.zip CMake-7f11536704d9f971cf5c8b0a2b490ccc6af58588.tar.gz CMake-7f11536704d9f971cf5c8b0a2b490ccc6af58588.tar.bz2 |
ENH: now target names can be used in add_custom_command() and
add_custom_target() as COMMAND, and cmake will recognize them and replace
them with the actual output path of these executables. Also the dependency
will be added automatically. Test included.
ENH: moved TraceVSDependencies() to the end of GlobalGenerator::Configure(),
so it is done now in one central place
Alex
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 5cda102..215d879 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -55,7 +55,7 @@ public: void SetType(TargetType f, const char* name); ///! Set/Get the name of the target - const char* GetName() {return this->Name.c_str();} + const char* GetName() const {return this->Name.c_str();} ///! Set the cmMakefile that owns this target void SetMakefile(cmMakefile *mf); @@ -180,7 +180,7 @@ public: /** * Trace through the source files in this target and add al source files - * that they depend on, used by the visual studio generators + * that they depend on, used by all generators */ void TraceVSDependencies(std::string projName, cmMakefile *mf); @@ -291,6 +291,13 @@ private: const LibraryID& lib, const LibraryID& dep); + /* + * Checks the prebuild, prelink and postbuild custom commands for known + * targets and adds them to the dependencies. + */ + void checkForTargetsAsCommand(const std::vector<cmCustomCommand>& commands); + + /** * Emits the library \a lib and all its dependencies into link_line. * \a emitted keeps track of the libraries that have been emitted to |