Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/CPack/cmCPackNuGetGenerator.h
5000 views
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 "cmCPackGenerator.h"
6
7
/** \class cmCPackNuGetGenerator
8
* \brief A generator for RPM packages
9
*/
10
class cmCPackNuGetGenerator : public cmCPackGenerator
11
{
12
public:
13
cmCPackTypeMacro(cmCPackNuGetGenerator, cmCPackGenerator);
14
15
// NOTE In fact, it is possible to have NuGet not only for Windows...
16
// https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools
17
static bool CanGenerate() { return true; }
18
19
protected:
20
bool SupportsComponentInstallation() const override;
21
int PackageFiles() override;
22
23
char const* GetOutputExtension() override { return ".nupkg"; }
24
bool SupportsAbsoluteDestination() const override { return false; }
25
/**
26
* The method used to prepare variables when component
27
* install is used.
28
*/
29
void SetupGroupComponentVariables(bool ignoreGroup);
30
/**
31
* Populate \c packageFileNames vector of built packages.
32
*/
33
void AddGeneratedPackageNames();
34
};
35
36