diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2015-11-11 04:37:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-23 15:04:10 (GMT) |
commit | 5d74c870d907eed9afc9c544e7e6786fd1ea53c8 (patch) | |
tree | 8d100076f15b2f656f0cc28a27d110bab00b9d22 /Help/prop_tgt/FRAMEWORK.rst | |
parent | dbef2244f97e266896f71729d0de5eeb80c1c5f9 (diff) | |
download | CMake-5d74c870d907eed9afc9c544e7e6786fd1ea53c8.zip CMake-5d74c870d907eed9afc9c544e7e6786fd1ea53c8.tar.gz CMake-5d74c870d907eed9afc9c544e7e6786fd1ea53c8.tar.bz2 |
Help: Update documentation to reflect support for iOS
Many of our interfaces documented for OS X also work for iOS.
Diffstat (limited to 'Help/prop_tgt/FRAMEWORK.rst')
-rw-r--r-- | Help/prop_tgt/FRAMEWORK.rst | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/Help/prop_tgt/FRAMEWORK.rst b/Help/prop_tgt/FRAMEWORK.rst index dcb6d3b..6c212c3 100644 --- a/Help/prop_tgt/FRAMEWORK.rst +++ b/Help/prop_tgt/FRAMEWORK.rst @@ -1,11 +1,31 @@ FRAMEWORK --------- -This target is a framework on the Mac. +Build ``SHARED`` library as Framework Bundle on the OS X and iOS. -If a shared library target has this property set to true it will be -built as a framework when built on the mac. It will have the +If a ``SHARED`` library target has this property set to ``TRUE`` it will be +built as a framework when built on the OS X and iOS. It will have the directory structure required for a framework and will be suitable to be used with the ``-framework`` option -See also the :prop_tgt:`FRAMEWORK_VERSION` target property. +To customize ``Info.plist`` file in the framework, use +:prop_tgt:`MACOSX_FRAMEWORK_INFO_PLIST` target property. + +For OS X see also the :prop_tgt:`FRAMEWORK_VERSION` target property. + +Example of creation ``dynamicFramework``: + +.. code-block:: cmake + + add_library(dynamicFramework SHARED + dynamicFramework.c + dynamicFramework.h + ) + set_target_properties(dynamicFramework PROPERTIES + FRAMEWORK TRUE + FRAMEWORK_VERSION C + MACOSX_FRAMEWORK_IDENTIFIER com.cmake.dynamicFramework + MACOSX_FRAMEWORK_INFO_PLIST Info.plist + PUBLIC_HEADER dynamicFramework.h + XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer" + ) |