1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-06-11 00:23:40 +08:00
CMake/Source/cmInstallImportedRuntimeArtifactsGenerator.h
Brad King 241ee252ce IWYU: Update for Debian 12 CI job
`include-what-you-use` diagnostics, in practice, are specific to
the environment's compiler and standard library.  Update includes
to satisfy IWYU for our CI job under Debian 12.
2023-07-28 09:14:08 -04:00

44 lines
1.3 KiB
C++

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once
#include <iosfwd>
#include <string>
#include <vector>
#include "cmInstallGenerator.h"
#include "cmListFileCache.h"
class cmGeneratorTarget;
class cmLocalGenerator;
class cmInstallImportedRuntimeArtifactsGenerator : public cmInstallGenerator
{
public:
cmInstallImportedRuntimeArtifactsGenerator(
std::string targetName, std::string const& dest,
std::string file_permissions,
std::vector<std::string> const& configurations,
std::string const& component, MessageLevel message, bool exclude_from_all,
bool optional, cmListFileBacktrace backtrace = cmListFileBacktrace());
~cmInstallImportedRuntimeArtifactsGenerator() override = default;
bool Compute(cmLocalGenerator* lg) override;
cmGeneratorTarget* GetTarget() const { return this->Target; }
bool GetOptional() const { return this->Optional; }
std::string GetDestination(std::string const& config) const;
protected:
void GenerateScriptForConfig(std::ostream& os, const std::string& config,
Indent indent) override;
private:
std::string const TargetName;
cmGeneratorTarget* Target;
std::string const FilePermissions;
bool const Optional;
};