install(EXPORT): Add ability to point to .xcframework file

Issue: #25262
This commit is contained in:
Kyle Edwards
2023-09-21 14:04:54 -04:00
parent a90968e044
commit 256bb0cc40
30 changed files with 338 additions and 43 deletions
+7 -2
View File
@@ -35,12 +35,14 @@ class cmExportBuildFileGenerator : public cmExportFileGenerator
public:
struct TargetExport
{
TargetExport(std::string name)
TargetExport(std::string name, std::string xcFrameworkLocation)
: Name(std::move(name))
, XcFrameworkLocation(std::move(xcFrameworkLocation))
{
}
std::string Name;
std::string XcFrameworkLocation;
};
cmExportBuildFileGenerator();
@@ -111,12 +113,15 @@ protected:
struct TargetExportPrivate
{
TargetExportPrivate(cmGeneratorTarget* target)
TargetExportPrivate(cmGeneratorTarget* target,
std::string xcFrameworkLocation)
: Target(target)
, XcFrameworkLocation(std::move(xcFrameworkLocation))
{
}
cmGeneratorTarget* Target;
std::string XcFrameworkLocation;
};
std::vector<TargetExport> Targets;