Discussion:
[cmake-developers] iOS friendly CMake
Gregor Jasny via cmake-developers
2018-01-16 10:19:01 UTC
Permalink
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
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Gregor Jasny via cmake-developers
2018-04-02 19:12:52 UTC
Permalink
Hi,
Post by Gregor Jasny via cmake-developers
I created a CMake branch where I attempt to provide an easy way to
configure CMake projects for iOS (and all other Xcode SDKs).
I have a second revision of the patches.

Issue: https://gitlab.kitware.com/cmake/cmake/issues/17870
Branch:
https://gitlab.kitware.com/gjasny/cmake/commits/17870-iphone-friendly-cmake

It would be nice if you could give the branch a try. But please note the
list of open todos within the issue.

Thanks,
Gregor
--
Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
Loading...