Including Cmake subproject in Qmake project
-
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? -
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.
-
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
-
pro2cmakeis found here https://github.com/qt/qtbase/tree/dev/util/cmake