An open API service indexing awesome lists of open source software.

https://github.com/forderud/qtcmakeios

CMake sample project for shared libs on iOS
https://github.com/forderud/qtcmakeios

Last synced: about 1 year ago
JSON representation

CMake sample project for shared libs on iOS

Awesome Lists containing this project

README

          

# QtCmakeIOS

Sample project for experimenting with **shared libraries (frameworks) on iOS** when using [CMake](https://cmake.org/) as build system and [Qt](https://www.qt.io/) as GUI library.

Run `Build.sh` from the macOS terminal to get started.

### CMake properties used
* [FRAMEWORK](https://cmake.org/cmake/help/latest/prop_tgt/FRAMEWORK.html) for annotating shared-lib as a framework
* [XCODE_LINK_BUILD_PHASE_MODE](https://cmake.org/cmake/help/latest/prop_tgt/XCODE_LINK_BUILD_PHASE_MODE.html) for "Link Binary With Libraries" (since CMake 3.19)
* [XCODE_EMBED_FRAMEWORKS](https://cmake.org/cmake/help/latest/prop_tgt/XCODE_EMBED_type.html) for "Embed Frameworks" (since CMake 3.20)
* [CMAKE_INSTALL_RPATH](https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_RPATH.html) for run-time framework loading

Limitation: The shared library does not use Qt directly, since that's not supported before https://bugreports.qt.io/browse/QTBUG-85974 is fixed.