Coverage Report

Created: 2026-03-12 06:35

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmInstallImportedRuntimeArtifactsGenerator.h
Line
Count
Source
1
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2
   file LICENSE.rst or https://cmake.org/licensing for details.  */
3
#pragma once
4
5
#include <iosfwd>
6
#include <string>
7
#include <vector>
8
9
#include "cmInstallGenerator.h"
10
#include "cmListFileCache.h"
11
12
class cmGeneratorTarget;
13
14
class cmInstallImportedRuntimeArtifactsGenerator : public cmInstallGenerator
15
{
16
public:
17
  cmInstallImportedRuntimeArtifactsGenerator(
18
    std::string targetName, std::string const& dest,
19
    std::string file_permissions,
20
    std::vector<std::string> const& configurations,
21
    std::string const& component, MessageLevel message, bool exclude_from_all,
22
    bool optional, cmListFileBacktrace backtrace = cmListFileBacktrace());
23
0
  ~cmInstallImportedRuntimeArtifactsGenerator() override = default;
24
25
  bool Compute(cmLocalGenerator* lg) override;
26
27
0
  cmGeneratorTarget* GetTarget() const { return this->Target; }
28
29
0
  bool GetOptional() const { return this->Optional; }
30
31
  std::string GetDestination(std::string const& config) const;
32
33
protected:
34
  void GenerateScriptForConfig(std::ostream& os, std::string const& config,
35
                               Indent indent) override;
36
37
private:
38
  std::string const TargetName;
39
  cmGeneratorTarget* Target;
40
  std::string const FilePermissions;
41
  bool const Optional;
42
};