diff options
author | Brad King <brad.king@kitware.com> | 2008-05-17 16:53:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-17 16:53:56 (GMT) |
commit | c1b8ad4e1db7df8dacbf8df2454270afb66d475b (patch) | |
tree | bf5e0410690e6a2bedcbd868386412cc0a667d62 /Source/cmTarget.cxx | |
parent | b9ede3c86d046baa36c79111f0d7ab4b42bdc8dc (diff) | |
download | CMake-c1b8ad4e1db7df8dacbf8df2454270afb66d475b.zip CMake-c1b8ad4e1db7df8dacbf8df2454270afb66d475b.tar.gz CMake-c1b8ad4e1db7df8dacbf8df2454270afb66d475b.tar.bz2 |
ENH: Allow users to specify a custom Info.plist template
- Create MACOSX_BUNDLE_INFO_PLIST target property to specify template.
- Look for MacOSXBundleInfo.plist.in in CMAKE_MODULE_PATH by default.
- See issue #6983.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f9c9426..c4cc793 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -547,10 +547,21 @@ void cmTarget::DefineProperties(cmake *cm) "When this property is set to true the executable when built " "on Mac OS X will be created as an application bundle. " "This makes it a GUI executable that can be launched from " - "the Finder.\n" - "The bundle Info.plist file is generated automatically. " - "The following target properties may be set to specify " - "its content:" + "the Finder. " + "See the MACOSX_BUNDLE_INFO_PLIST target property for information " + "about creation of the Info.plist file for the application bundle."); + + cm->DefineProperty + ("MACOSX_BUNDLE_INFO_PLIST", cmProperty::TARGET, + "Specify a custom Info.plist template for a Mac OS X App Bundle.", + "An executable target with MACOSX_BUNDLE enabled will be built as an " + "application bundle on Mac OS X. " + "By default its Info.plist file is created by configuring a template " + "called MacOSXBundleInfo.plist.in located in the CMAKE_MODULE_PATH. " + "This property specifies an alternative template file name which " + "may be a full path.\n" + "The following target properties may be set to specify content to " + "be configured into the file:\n" " MACOSX_BUNDLE_INFO_STRING\n" " MACOSX_BUNDLE_ICON_FILE\n" " MACOSX_BUNDLE_GUI_IDENTIFIER\n" @@ -559,7 +570,10 @@ void cmTarget::DefineProperties(cmake *cm) " MACOSX_BUNDLE_SHORT_VERSION_STRING\n" " MACOSX_BUNDLE_BUNDLE_VERSION\n" " MACOSX_BUNDLE_COPYRIGHT\n" - ); + "CMake variables of the same name may be set to affect all targets " + "in a directory that do not have each specific property set. " + "If a custom Info.plist is specified by this property it may of course " + "hard-code all the settings instead of using the target properties."); cm->DefineProperty ("ENABLE_EXPORTS", cmProperty::TARGET, |