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/cmExportFileGenerator.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/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index d2c8ccb..6cf30c9 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -282,14 +282,19 @@ cmExportFileGenerator << " PROPERTY ENABLE_EXPORTS 1)\n"; } - // Mark the imported framework. This is done even on non-Apple - // platforms for reference and consistency purposes. - if(target->GetType() == cmTarget::SHARED_LIBRARY && - target->GetPropertyAsBool("FRAMEWORK")) + // Mark the imported library if it is a framework. + if(target->IsFrameworkOnApple()) { os << "SET_PROPERTY(TARGET " << targetName << " PROPERTY FRAMEWORK 1)\n"; } + + // Mark the imported executable if it is an application bundle. + if(target->IsAppBundleOnApple()) + { + os << "SET_PROPERTY(TARGET " << targetName + << " PROPERTY MACOSX_BUNDLE 1)\n"; + } os << "\n"; } |