summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallExportGenerator.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-27 20:04:57 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-27 20:04:57 (GMT)
commit3e12a6cb917d0e6a8b10e239a2e5fa9cf3a8c358 (patch)
tree2f3cc243afbebf29b997aa9d9333fdc1ee8b1539 /Source/cmInstallExportGenerator.h
parent556b1257ac5e961a5fbc652f51acf157f157bed8 (diff)
downloadCMake-3e12a6cb917d0e6a8b10e239a2e5fa9cf3a8c358.zip
CMake-3e12a6cb917d0e6a8b10e239a2e5fa9cf3a8c358.tar.gz
CMake-3e12a6cb917d0e6a8b10e239a2e5fa9cf3a8c358.tar.bz2
ENH: add install files generators for targets which have PUBLIC_HEADER,
PRIVATE_HEADER or RESOURCE_FILES property, use the destination for the public headers as include directory property for exported libraries Alex
Diffstat (limited to 'Source/cmInstallExportGenerator.h')
-rw-r--r--Source/cmInstallExportGenerator.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmInstallExportGenerator.h b/Source/cmInstallExportGenerator.h
index 0559872..ee0ae3e 100644
--- a/Source/cmInstallExportGenerator.h
+++ b/Source/cmInstallExportGenerator.h
@@ -23,6 +23,7 @@ class cmTarget;
class cmInstallTargetGenerator;
+class cmInstallFilesGenerator;
/* cmInstallExportTarget is used in cmGlobalGenerator to collect the
install generators for the exported targets. These are then used by the
@@ -36,10 +37,12 @@ public:
cmInstallTargetGenerator* runtime,
cmInstallTargetGenerator* library,
cmInstallTargetGenerator* framework,
- cmInstallTargetGenerator* bundle
+ cmInstallTargetGenerator* bundle,
+ cmInstallFilesGenerator* headers
) : Target(tgt), ArchiveGenerator(archive),
RuntimeGenerator(runtime), LibraryGenerator(library),
- FrameworkGenerator(framework), BundleGenerator(bundle) {}
+ FrameworkGenerator(framework), BundleGenerator(bundle),
+ HeaderGenerator(headers) {}
cmTarget* Target;
cmInstallTargetGenerator* ArchiveGenerator;
@@ -47,6 +50,7 @@ public:
cmInstallTargetGenerator* LibraryGenerator;
cmInstallTargetGenerator* FrameworkGenerator;
cmInstallTargetGenerator* BundleGenerator;
+ cmInstallFilesGenerator* HeaderGenerator;
private:
cmTargetExport();
};
@@ -85,6 +89,9 @@ protected:
static bool AddInstallLocations(cmTargetWithProperties *twp,
cmInstallTargetGenerator* generator,
const char* prefix);
+ static bool AddInstallLocations(cmTargetWithProperties* twp,
+ cmInstallFilesGenerator* generator,
+ const char* propertyName);
std::string Name;
std::string FilePermissions;