2013-02-07 20:36:29 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2013 Stephen Kelly <steveire@gmail.com>
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2015-07-27 23:56:13 +03:00
|
|
|
#ifndef cmExportTryCompileFileGenerator_h
|
|
|
|
#define cmExportTryCompileFileGenerator_h
|
2013-02-07 20:36:29 +04:00
|
|
|
|
|
|
|
#include "cmExportFileGenerator.h"
|
|
|
|
|
|
|
|
class cmInstallExportGenerator;
|
|
|
|
class cmInstallTargetGenerator;
|
|
|
|
|
|
|
|
class cmExportTryCompileFileGenerator: public cmExportFileGenerator
|
|
|
|
{
|
|
|
|
public:
|
2015-07-25 21:44:35 +03:00
|
|
|
cmExportTryCompileFileGenerator(cmGlobalGenerator* gg);
|
|
|
|
|
2013-02-07 20:36:29 +04:00
|
|
|
/** Set the list of targets to export. */
|
2013-10-30 01:21:20 +04:00
|
|
|
void SetExports(const std::vector<cmTarget const*> &exports)
|
2013-02-07 20:36:29 +04:00
|
|
|
{ this->Exports = exports; }
|
2014-02-10 07:48:34 +04:00
|
|
|
void SetConfig(const std::string& config) { this->Config = config; }
|
2013-02-07 20:36:29 +04:00
|
|
|
protected:
|
|
|
|
|
|
|
|
// Implement virtual methods from the superclass.
|
|
|
|
virtual bool GenerateMainFile(std::ostream& os);
|
|
|
|
|
|
|
|
virtual void GenerateImportTargetsConfig(std::ostream&,
|
2014-02-10 07:48:34 +04:00
|
|
|
const std::string&,
|
2013-02-07 20:36:29 +04:00
|
|
|
std::string const&,
|
|
|
|
std::vector<std::string>&) {}
|
|
|
|
virtual void HandleMissingTarget(std::string&,
|
|
|
|
std::vector<std::string>&,
|
|
|
|
cmMakefile*,
|
|
|
|
cmTarget*,
|
|
|
|
cmTarget*) {}
|
|
|
|
|
2013-10-30 01:21:20 +04:00
|
|
|
void PopulateProperties(cmTarget const* target,
|
2013-02-07 20:36:29 +04:00
|
|
|
ImportPropertyMap& properties,
|
2013-10-30 01:21:20 +04:00
|
|
|
std::set<cmTarget const*> &emitted);
|
2013-02-07 20:36:29 +04:00
|
|
|
|
2015-08-04 20:19:47 +03:00
|
|
|
std::string InstallNameDir(cmGeneratorTarget* target,
|
2013-05-21 02:57:58 +04:00
|
|
|
const std::string& config);
|
2013-02-07 20:36:29 +04:00
|
|
|
private:
|
2013-09-03 00:27:32 +04:00
|
|
|
std::string FindTargets(const std::string& prop, cmTarget const* tgt,
|
2013-10-30 01:21:20 +04:00
|
|
|
std::set<cmTarget const*> &emitted);
|
2013-02-07 20:36:29 +04:00
|
|
|
|
|
|
|
|
2013-10-30 01:21:20 +04:00
|
|
|
std::vector<cmTarget const*> Exports;
|
2014-02-10 07:48:34 +04:00
|
|
|
std::string Config;
|
2013-02-07 20:36:29 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|