/src/CMake/Source/cmInstallCMakeConfigExportGenerator.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 "cmInstallExportGenerator.h" |
10 | | |
11 | | class cmExportSet; |
12 | | class cmListFileBacktrace; |
13 | | |
14 | | /** \class cmInstallCMakeConfigExportGenerator |
15 | | * \brief Generate rules for creating CMake export files. |
16 | | */ |
17 | | class cmInstallCMakeConfigExportGenerator : public cmInstallExportGenerator |
18 | | { |
19 | | public: |
20 | | cmInstallCMakeConfigExportGenerator( |
21 | | cmExportSet* exportSet, std::string destination, |
22 | | std::string filePermissions, |
23 | | std::vector<std::string> const& configurations, std::string component, |
24 | | MessageLevel message, bool excludeFromAll, std::string filename, |
25 | | std::string targetNamespace, std::string cxxModulesDirectory, |
26 | | bool exportOld, bool exportPackageDependencies, |
27 | | cmListFileBacktrace backtrace); |
28 | | cmInstallCMakeConfigExportGenerator( |
29 | | cmInstallCMakeConfigExportGenerator const&) = delete; |
30 | | ~cmInstallCMakeConfigExportGenerator() override; |
31 | | |
32 | | cmInstallCMakeConfigExportGenerator& operator=( |
33 | | cmInstallCMakeConfigExportGenerator const&) = delete; |
34 | | |
35 | 0 | char const* InstallSubcommand() const override { return "EXPORT"; } |
36 | | |
37 | | protected: |
38 | | void GenerateScript(std::ostream& os) override; |
39 | | |
40 | | bool const ExportOld; |
41 | | bool const ExportPackageDependencies; |
42 | | }; |