diff options
author | Brad King <brad.king@kitware.com> | 2008-01-28 19:46:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-28 19:46:16 (GMT) |
commit | e3b1bdb058ac23bc535b941fc2ed66a410932d74 (patch) | |
tree | 9cecfe783ed59bb4995c206967b5416c0ee689dc /Source/cmExportBuildFileGenerator.cxx | |
parent | 437043bb04da113bf822aa42d5cf3a3cc3366be1 (diff) | |
download | CMake-e3b1bdb058ac23bc535b941fc2ed66a410932d74.zip CMake-e3b1bdb058ac23bc535b941fc2ed66a410932d74.tar.gz CMake-e3b1bdb058ac23bc535b941fc2ed66a410932d74.tar.bz2 |
ENH: Support exporting/importing of AppBundle targets.
- Imported bundles have the MACOSX_BUNDLE property set
- Added cmTarget::IsAppBundleOnApple method to simplify checks
- Document BUNDLE keyword in INSTALL command
- Updated IMPORTED_LOCATION property documentation for bundles
- Updated ExportImport test to test bundles
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r-- | Source/cmExportBuildFileGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx index 0412c90..3b634e6 100644 --- a/Source/cmExportBuildFileGenerator.cxx +++ b/Source/cmExportBuildFileGenerator.cxx @@ -84,6 +84,11 @@ cmExportBuildFileGenerator std::string prop = "IMPORTED_LOCATION"; prop += suffix; std::string value = target->GetFullPath(config, false); + if(target->IsAppBundleOnApple()) + { + value += ".app/Contents/MacOS/"; + value += target->GetFullName(config, false); + } properties[prop] = value; } |