[CMake] Generate Xcode projects on a Windows environment
Eric Noulard
eric.noulard at gmail.com
Wed Jan 4 10:16:06 EST 2012
2012/1/4 Hertout Julien <julien.hertout at neomades.com>:
>
> Is it possible to know why you need that?
>
> Of course.
> We develop software to help to develop applications for mobile phones. From
> a source code written in Java with our APIs we generate projects for JavaME,
> Android, Blackberry, WP7 and (almost) for iPhone. For JavaME, Android and
> Blackberry we generate Java project for Eclipse and for WP7 a Visual Studio
> for Windows Phone project. We want to generate a Xcode project for iPhone.
> Actually all the source code are generated by our tool but not the Xcode
> project. It is where CMake can help. Except for iPhone, all the projects can
> be generated from any OS (even if the project for WP7 cannot be open from a
> Mac). It is a feature we propose : user just have to push a button to have
> all its projects. Then, to build or modify the projects, each project can be
> copied or sent to another computer.
Ok I see.
> CMake can be a way to quickly generate the project from the sources we
> generate for iPhone (moreover, it is quite difficult to manualy generate a
> XCode project). However if you say that the generated project files are not
> meant to be relocable, we might think to do it in an other way or to adapt
> our product.
I let people with more experience than me with
XCode, iphone & Co. comment on that.
However, a general rule with CMake is to consider that cmake itself becomes
a requirement of your build system.
With CMake (at least currently) the developer/user cannot work without CMake
if the project (makefiles, IDE project files (Visual Studio, XCode, Eclipse)
has been generated with it.
see e.g.
http://www.cmake.org/Wiki/CMake_FAQ#Why_does_CMake_use_full_paths.2C_or_can_I_copy_my_build_tree.3F
or
http://www.cmake.org/Bug/view.php?id=11095
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list