cmake/Source/cmInstallSubdirectoryGenerator.h

40 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. */
2021-09-14 00:13:48 +02:00
#pragma once
2019-11-11 23:01:05 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
#include <iosfwd>
#include <string>
2020-02-01 23:06:01 +01:00
#include "cmInstallGenerator.h"
2021-09-14 00:13:48 +02:00
#include "cmListFileCache.h"
2020-02-01 23:06:01 +01:00
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,
2021-09-14 00:13:48 +02:00
cmListFileBacktrace backtrace);
2019-11-11 23:01:05 +01:00
~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;
};