diff options
Diffstat (limited to 'Source/cmInstallGenerator.h')
-rw-r--r-- | Source/cmInstallGenerator.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmInstallGenerator.h b/Source/cmInstallGenerator.h index 3abcf86..904bb2b 100644 --- a/Source/cmInstallGenerator.h +++ b/Source/cmInstallGenerator.h @@ -62,8 +62,8 @@ public: void Generate(std::ostream& os, const char* config, std::vector<std::string> const& configurationTypes); - static void AddInstallRule( - std::ostream& os, const char* dest, int type, + void AddInstallRule( + std::ostream& os, int type, std::vector<std::string> const& files, bool optional = false, const char* properties = 0, @@ -78,6 +78,14 @@ public: { return this->Destination.c_str(); } const std::vector<std::string>& GetConfigurations() const { return this->Configurations; } + + /** Get the install destination as it should appear in the + installation script. */ + std::string GetInstallDestination() const; + + /** Test if this generator installs something for a given configuration. */ + bool InstallsForConfig(const char*); + protected: typedef cmInstallGeneratorIndent Indent; virtual void GenerateScript(std::ostream& os); |