diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-22 14:24:59 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-22 14:24:59 (GMT) |
commit | 4878c009057cf410fff98d8450e1e7cd2b3072ae (patch) | |
tree | a7ef13ec8a302e2530ec1a1fe5edda141fa9896e /Source/cmMakefile.h | |
parent | 6be930f0cfca31d62c3dc498b3fc9e756acca710 (diff) | |
download | CMake-4878c009057cf410fff98d8450e1e7cd2b3072ae.zip CMake-4878c009057cf410fff98d8450e1e7cd2b3072ae.tar.gz CMake-4878c009057cf410fff98d8450e1e7cd2b3072ae.tar.bz2 |
ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates an
"imported" executable target. This can then be used e.g. with
ADD_CUSTOM_COMMAND() to generate stuff. It adds a second container for
"imported" targets, and FindTarget() now takes an additional argument bool
useImportedTargets to specify whether you also want to search in the
imported targets or only in the "normal" targets.
Alex
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 8f4d0ee..0c4341a 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -167,6 +167,8 @@ public: void AddDefineFlag(const char* definition); void RemoveDefineFlag(const char* definition); + cmTarget* AddNewTarget(cmTarget::TargetType type, const char* name, bool isImported); + /** * Add an executable to the build. */ @@ -416,8 +418,9 @@ public: * Get the list of targets */ cmTargets &GetTargets() { return this->Targets; } + const cmTargets &GetImportedTargets() const { return this->ImportedTargets; } - cmTarget* FindTarget(const char* name); + cmTarget* FindTarget(const char* name, bool useImportedTargets); /** @@ -741,6 +744,7 @@ protected: // libraries, classes, and executables cmTargets Targets; + cmTargets ImportedTargets; std::vector<cmSourceFile*> SourceFiles; // Tests |