[cmake-developers] iOS friendly CMake
Gregor Jasny
gjasny at googlemail.com
Tue Jan 16 05:19:01 EST 2018
Hi,
I created a CMake branch where I attempt to provide an easy way to
configure CMake projects for iOS (and all other Xcode SDKs).
All you need to build for iOS is:
cmake -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_SYSROOT=iphoneos -GXcode .
In case you build code that must be code signed also add your
development team: -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ABCDEFG
The merge request is here:
https://gitlab.kitware.com/cmake/cmake/merge_requests/1664
Please give it a try and add any comments you have to the merge
requests. I only tested it with Xcode 9 on High Sierra so far.
Thanks,
Gregor
More information about the cmake-developers
mailing list