diff options
author | Brad King <brad.king@kitware.com> | 2015-07-14 18:57:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-14 18:57:02 (GMT) |
commit | eb8eaaecbe4aaf950a217d53c477461794fe6db8 (patch) | |
tree | 48893f1287be67aa12986a88a5f175041b412bc9 /Help/manual | |
parent | 7a409983292e0917cf1299d55ca601a92fd4a36e (diff) | |
download | CMake-eb8eaaecbe4aaf950a217d53c477461794fe6db8.zip CMake-eb8eaaecbe4aaf950a217d53c477461794fe6db8.tar.gz CMake-eb8eaaecbe4aaf950a217d53c477461794fe6db8.tar.bz2 |
Help: Document Apple Framework creation with an example (#15651)
Diffstat (limited to 'Help/manual')
-rw-r--r-- | Help/manual/cmake-buildsystem.7.rst | 16 | ||||
-rw-r--r-- | Help/manual/cmake-properties.7.rst | 1 |
2 files changed, 17 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 diff --git a/Help/manual/cmake-properties.7.rst b/Help/manual/cmake-properties.7.rst index b767ed6..9519046 100644 --- a/Help/manual/cmake-properties.7.rst +++ b/Help/manual/cmake-properties.7.rst @@ -135,6 +135,7 @@ Properties on Targets /prop_tgt/Fortran_FORMAT /prop_tgt/Fortran_MODULE_DIRECTORY /prop_tgt/FRAMEWORK + /prop_tgt/FRAMEWORK_VERSION /prop_tgt/GENERATOR_FILE_NAME /prop_tgt/GNUtoMS /prop_tgt/HAS_CXX |