Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. CMake Generator for IOS/Android projects?
Forum Updated to NodeBB v4.3 + New Features

CMake Generator for IOS/Android projects?

Scheduled Pinned Locked Moved Mobile and Embedded
19 Posts 7 Posters 18.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jpo38
    wrote on last edited by
    #9

    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

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Elador
      wrote on last edited by
      #10

      Hi all,

      Is there an update to this? I'm very interested in this as well.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jpo38
        wrote on last edited by
        #11

        Hi Elador,

        With CMake, it's pretty easy to generate a .pro file manually. The syntax is very simple, only add your files and some keywords.

        I think today this is the best solution to compile CMake projects with QtCreator.

        Jean

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LaurentGom
          wrote on last edited by
          #12

          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.

          https://github.com/LaurentGomila/qt-android-cmake

          1 Reply Last reply
          0
          • L Offline
            L Offline
            LaurentGom
            wrote on last edited by
            #13

            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.

            https://github.com/LaurentGomila/qt-android-cmake

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #14

              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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #15

                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

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  LaurentGom
                  wrote on last edited by
                  #16

                  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.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LaurentGom
                    wrote on last edited by
                    #17

                    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.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #18

                      I'd say it's worth asking on the "android-development mailing list":http://lists.qt-project.org/mailman/listinfo/android-development :)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #19

                        I'd say it's worth asking on the "android-development mailing list":http://lists.qt-project.org/mailman/listinfo/android-development :)

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved