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
- Host: GitHub
- URL: https://github.com/forderud/qtcmakeios
- Owner: forderud
- License: mit
- Created: 2021-05-25T08:34:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-08T12:06:12.000Z (about 5 years ago)
- Last Synced: 2025-04-28T16:18:40.531Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.