I was able to get my hello world (cmake + SDL2 + OpenGL ES 2) working on
iOS as an XCode project using this project (
https://github.com/cristeab/ios-cmake ) plus I used these two tutorials as
a reference - (
http://www.michaelborgmann.com/tutorials/build-sdl2-app-for-ios-using-cmake/ )
and ( http://lazyfoo.net/tutorials/SDL/52_hello_mobile/ios_mac/index.php )

So now I have Windows, Linux, OSX, iOS, Android, Emscripten...  Windows
(vs2013-32b, mingw-32b) (ANGLE for GLES2).  Android on Windows (vs2010 with
nvidia tegra nsight) (no nmake or Android Studio yet).  Emscripten on
Windows.  Linux.  OSX (the only platform using desktop OpenGL instead of
GLES2).  iOS on OSX (XCode).

If someone wants to save time maybe start from this project (
https://github.com/michaelborgmann/xgamedev ).  I didn't try it but it
looks very promising.  Instead, I had some fun learning some cmake stuff
going through the exercise step-by-step.

I also got the feeling that cmake might be a little easier for new users to
adopt if cmake releases include more built-in support for more platforms,
especially for Android and iOS.  On a related issue, it's awesome that Qt
Creator comes with built-in cmake support.  Personally I wish Qt would
focus on contributing to cmake (and expanding Qt Creator's built-in cmake
support) instead of doing their own qmake and qbs :-)

thank you & best regards


On Fri, Aug 28, 2015 at 1:43 PM, Brad King <brad.k...@kitware.com> wrote:

> On 08/28/2015 03:34 AM, Peter List wrote:
> > 1) Are there any plans to add built-in iOS support as part of the
> > standard cmake release?
>
> There are several third-party solutions but no one has stepped forward
> to actually contribute full support.  The basic approach should be to
> create a Modules/Platform/iOS.cmake file so that one can build with
> CMAKE_SYSTEM_NAME set to "iOS" (instead of "Darwin" as all the existing
> third-party solutions do).  Then knowledge of iOS can be stored in
> the CMake platform information modules instead of copied around in
> a third-party toolchain file.
>
> -Brad
>
>
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to