MACOSX_FRAMEWORK_INFO_PLIST.rst 1.1 KB

123456789101112131415161718192021222324252627
  1. MACOSX_FRAMEWORK_INFO_PLIST
  2. ---------------------------
  3. Specify a custom ``Info.plist`` template for a OS X and iOS Framework.
  4. A library target with :prop_tgt:`FRAMEWORK` enabled will be built as a
  5. framework on OS X. By default its ``Info.plist`` file is created by
  6. configuring a template called ``MacOSXFrameworkInfo.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_FRAMEWORK_BUNDLE_VERSION``
  12. Sets ``CFBundleVersion``.
  13. ``MACOSX_FRAMEWORK_ICON_FILE``
  14. Sets ``CFBundleIconFile``.
  15. ``MACOSX_FRAMEWORK_IDENTIFIER``
  16. Sets ``CFBundleIdentifier``.
  17. ``MACOSX_FRAMEWORK_SHORT_VERSION_STRING``
  18. Sets ``CFBundleShortVersionString``.
  19. CMake variables of the same name may be set to affect all targets in a
  20. directory that do not have each specific property set. If a custom
  21. ``Info.plist`` is specified by this property it may of course hard-code
  22. all the settings instead of using the target properties.