MACOSX_BUNDLE_INFO_PLIST.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. MACOSX_BUNDLE_INFO_PLIST
  2. ------------------------
  3. Specify a custom ``Info.plist`` template for a OS X and iOS Application Bundle.
  4. An executable target with :prop_tgt:`MACOSX_BUNDLE` enabled will be built as an
  5. application bundle on OS X. By default its ``Info.plist`` file is created
  6. by configuring a template called ``MacOSXBundleInfo.plist.in`` located in the
  7. :variable:`CMAKE_MODULE_PATH`. This property specifies an alternative template
  8. file name which may be a full path.
  9. The following target properties may be set to specify content to be
  10. configured into the file:
  11. ``MACOSX_BUNDLE_BUNDLE_NAME``
  12. Sets ``CFBundleName``.
  13. ``MACOSX_BUNDLE_BUNDLE_VERSION``
  14. Sets ``CFBundleVersion``.
  15. ``MACOSX_BUNDLE_COPYRIGHT``
  16. Sets ``NSHumanReadableCopyright``.
  17. ``MACOSX_BUNDLE_GUI_IDENTIFIER``
  18. Sets ``CFBundleIdentifier``.
  19. ``MACOSX_BUNDLE_ICON_FILE``
  20. Sets ``CFBundleIconFile``.
  21. ``MACOSX_BUNDLE_INFO_STRING``
  22. Sets ``CFBundleGetInfoString``.
  23. ``MACOSX_BUNDLE_LONG_VERSION_STRING``
  24. Sets ``CFBundleLongVersionString``.
  25. ``MACOSX_BUNDLE_SHORT_VERSION_STRING``
  26. Sets ``CFBundleShortVersionString``.
  27. CMake variables of the same name may be set to affect all targets in a
  28. directory that do not have each specific property set. If a custom
  29. ``Info.plist`` is specified by this property it may of course hard-code
  30. all the settings instead of using the target properties.