Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Including Cmake subproject in Qmake project
Qt 6.11 is out! See what's new in the release blog

Including Cmake subproject in Qmake project

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 1.7k 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.
  • P Offline
    P Offline
    Pavel Romankov
    wrote on last edited by
    #1

    Hello.
    We have a large project on QMake with a lot of subdirs (subprojects), it use QT6.2.3.
    We decide to move it to CMake build system, but it difficult to make it in one time. I have an idea to begin move subbprogect to CMake one by one. Is it real to use CMake subproject in QMake project?

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

      Hi,

      AFAIK, the other way around should be simpler.

      That said, if memory serves well, there's (or used to be) a script somewhere in the Qt sources to help move from qmake to cmake. It will not handle everything but could help you get started faster.

      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
      1
      • leenamiettinenL Offline
        leenamiettinenL Offline
        leenamiettinen
        wrote on last edited by
        #3

        Hello,

        The "Build with CMake" documentation is being improved in the dev branch. The snapshot now contains some information about structuring CMake projects here: https://doc-snapshots.qt.io/qt6-dev/cmake-get-started.html#structuring-projects

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          pro2cmake is found here https://github.com/qt/qtbase/tree/dev/util/cmake

          1 Reply Last reply
          2

          • Login

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