CMake Generator for IOS/Android projects?
-
If anyone else stumbles across this thread and also wishes they could build iOS and Android targets with CMake (as you can for desktop applications) then please vote for this feature request on Qt's bug tracker
-
Hi Hyblade,
I think I'm having exactly the same problem as you had. Trying to migrate a huge CMake-based project (compiled with Visual Syudio on PC) to a QtCreator-based project (to target Android). I could do that for a helloworld sample program by writting a pro file manually and am now investigating how to generate .pro files automatically.
Your macro looks good so I wanted to try it. But you did not post all. I'm missing the QMAKE_ADD_* macros, can you post them too?
Thanks
Jean
-
Hi
After being bored by writing duplicate .pro and CMake files for every new project, I ended up writing a CMake utility that combines every useful piece of code/information that I found on the subject. It uses an Android toolchain and the androidqtdeploy tool, to build and deploy APK files without QMake/QtCreator.
This utility may be useful to anyone doing Qt/Android development with CMake. Don't hesitate to use or modify it freely.
-
Hi
After being bored by writing duplicate .pro and CMake files for every new project, I ended up writing a CMake utility that combines every useful piece of code/information that I found on the subject. It uses an Android toolchain and the androidqtdeploy tool, to build and deploy APK files without QMake/QtCreator.
This utility may be useful to anyone doing Qt/Android development with CMake. Don't hesitate to use or modify it freely.
-
Hi and welcome to devnet,
Looks pretty interesting ! Did you thought about contributing it to the Qt project ? That way more user may benefit from it
-
Hi and welcome to devnet,
Looks pretty interesting ! Did you thought about contributing it to the Qt project ? That way more user may benefit from it
-
I don't know if it would fit in the Qt project itself. Previous requests for a better CMake integration for Android were all rejected.
Anyway, if someone wants to integrate it, I'll be happy to help.
-
I don't know if it would fit in the Qt project itself. Previous requests for a better CMake integration for Android were all rejected.
Anyway, if someone wants to integrate it, I'll be happy to help.
-
I'd say it's worth asking on the "android-development mailing list":http://lists.qt-project.org/mailman/listinfo/android-development :)
-
I'd say it's worth asking on the "android-development mailing list":http://lists.qt-project.org/mailman/listinfo/android-development :)