diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-23 17:07:26 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-12-24 13:02:49 +0100 |
commit | cbe7e8fae48b3663e784bb37d5f66bf8b3eb0546 (patch) | |
tree | 910046c109660f4533f0ec6ceec1de485e3032d2 /Source/cmExportBuildFileGenerator.h | |
parent | e73d1ad003c50730a8141db757462574c0c2dddc (diff) | |
download | cmake-cbe7e8fae48b3663e784bb37d5f66bf8b3eb0546.tar.gz |
export: Implement EXPORT subcommand (#9822)
Teach the export command to handle export sets defined by invocations
of install(TARGETS ... EXPORT foo). This makes maintenance of targets
exported to both the build tree and install tree trivial.
Diffstat (limited to 'Source/cmExportBuildFileGenerator.h')
-rw-r--r-- | Source/cmExportBuildFileGenerator.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmExportBuildFileGenerator.h b/Source/cmExportBuildFileGenerator.h index 2fbd98f66a..cea2099b7b 100644 --- a/Source/cmExportBuildFileGenerator.h +++ b/Source/cmExportBuildFileGenerator.h @@ -15,6 +15,8 @@ #include "cmExportFileGenerator.h" #include "cmListFileCache.h" +class cmExportSet; + /** \class cmExportBuildFileGenerator * \brief Generate a file exporting targets from a build tree. * @@ -32,11 +34,11 @@ public: /** Set the list of targets to export. */ void SetTargets(std::vector<std::string> const& targets) { this->Targets = targets; } - std::vector<std::string> const& GetTargets() const - { return this->Targets; } + void GetTargets(std::vector<std::string> &targets) const; void AppendTargets(std::vector<std::string> const& targets) { this->Targets.insert(this->Targets.end(), targets.begin(), targets.end()); } + void SetExportSet(cmExportSet*); /** Set whether to append generated code to the output file. */ void SetAppendMode(bool append) { this->AppendMode = append; } @@ -75,6 +77,7 @@ protected: FindNamespaces(cmMakefile* mf, const std::string& name); std::vector<std::string> Targets; + cmExportSet *ExportSet; std::vector<cmTarget*> Exports; cmMakefile* Makefile; cmListFileBacktrace Backtrace; |