summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-buildsystem.7.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-14 18:57:02 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-14 18:57:02 (GMT)
commiteb8eaaecbe4aaf950a217d53c477461794fe6db8 (patch)
tree48893f1287be67aa12986a88a5f175041b412bc9 /Help/manual/cmake-buildsystem.7.rst
parent7a409983292e0917cf1299d55ca601a92fd4a36e (diff)
downloadCMake-eb8eaaecbe4aaf950a217d53c477461794fe6db8.zip
CMake-eb8eaaecbe4aaf950a217d53c477461794fe6db8.tar.gz
CMake-eb8eaaecbe4aaf950a217d53c477461794fe6db8.tar.bz2
Help: Document Apple Framework creation with an example (#15651)
Diffstat (limited to 'Help/manual/cmake-buildsystem.7.rst')
-rw-r--r--Help/manual/cmake-buildsystem.7.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index aefdb71..357aae9 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -85,6 +85,22 @@ It is a type which is loaded as a plugin using runtime techniques.
add_library(archive MODULE 7z.cpp)
+.. _`Apple Frameworks`:
+
+Apple Frameworks
+""""""""""""""""
+
+A ``SHARED`` library may be marked with the :prop_tgt:`FRAMEWORK`
+target property to create an OS X Framework:
+
+.. code-block:: cmake
+
+ add_library(MyFramework SHARED MyFramework.cpp)
+ set_target_properties(MyFramework PROPERTIES
+ FRAMEWORK 1
+ FRAMEWORK_VERSION A
+ )
+
.. _`Object Libraries`:
Object Libraries