cmake/Source/cmInstallSubdirectoryGenerator.h

42 lines
1.1 KiB
C
Raw Normal View History

2019-11-11 23:01:05 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmInstallSubdirectoryGenerator_h
#define cmInstallSubdirectoryGenerator_h
#include "cmConfigure.h" // IWYU pragma: keep
#include <iosfwd>
#include <string>
2020-02-01 23:06:01 +01:00
#include "cmInstallGenerator.h"
2019-11-11 23:01:05 +01:00
class cmLocalGenerator;
class cmMakefile;
/** \class cmInstallSubdirectoryGenerator
* \brief Generate target installation rules.
*/
class cmInstallSubdirectoryGenerator : public cmInstallGenerator
{
public:
cmInstallSubdirectoryGenerator(cmMakefile* makefile,
2020-08-30 11:54:41 +02:00
std::string binaryDirectory,
2019-11-11 23:01:05 +01:00
bool excludeFromAll);
~cmInstallSubdirectoryGenerator() override;
bool HaveInstall() override;
void CheckCMP0082(bool& haveSubdirectoryInstall,
bool& haveInstallAfterSubdirectory) override;
bool Compute(cmLocalGenerator* lg) override;
protected:
void GenerateScript(std::ostream& os) override;
2020-08-30 11:54:41 +02:00
cmMakefile* const Makefile;
std::string const BinaryDirectory;
2019-11-11 23:01:05 +01:00
cmLocalGenerator* LocalGenerator;
};
#endif