cmake/Source/cmExportTryCompileFileGenerator.h

58 lines
2.1 KiB
C
Raw Normal View History

2013-03-16 19:13:01 +02: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.
============================================================================*/
#ifndef cmExportInstallFileGenerator_h
#define cmExportInstallFileGenerator_h
#include "cmExportFileGenerator.h"
class cmInstallExportGenerator;
class cmInstallTargetGenerator;
class cmExportTryCompileFileGenerator: public cmExportFileGenerator
{
public:
/** Set the list of targets to export. */
2014-08-03 19:52:23 +02:00
void SetExports(const std::vector<cmTarget const*> &exports)
2013-03-16 19:13:01 +02:00
{ this->Exports = exports; }
void SetConfig(const char *config) { this->Config = config; }
protected:
// Implement virtual methods from the superclass.
virtual bool GenerateMainFile(std::ostream& os);
virtual void GenerateImportTargetsConfig(std::ostream&,
const char*,
std::string const&,
std::vector<std::string>&) {}
virtual void HandleMissingTarget(std::string&,
std::vector<std::string>&,
cmMakefile*,
cmTarget*,
cmTarget*) {}
2014-08-03 19:52:23 +02:00
void PopulateProperties(cmTarget const* target,
2013-03-16 19:13:01 +02:00
ImportPropertyMap& properties,
2014-08-03 19:52:23 +02:00
std::set<cmTarget const*> &emitted);
2013-03-16 19:13:01 +02:00
2013-11-03 12:27:13 +02:00
std::string InstallNameDir(cmTarget* target,
const std::string& config);
2013-03-16 19:13:01 +02:00
private:
2014-08-03 19:52:23 +02:00
std::string FindTargets(const char *prop, cmTarget const* tgt,
std::set<cmTarget const*> &emitted);
2013-03-16 19:13:01 +02:00
2014-08-03 19:52:23 +02:00
std::vector<cmTarget const*> Exports;
2013-03-16 19:13:01 +02:00
const char *Config;
};
#endif