Since 4.8.0 is out, I\'ve reinstalled Qt, and now I want to use cmake too. To make cmake work, I remember having to add the mingw bin folder (QtSDK\\Desktop\\Qt\\4.7.3
You just need to set the path to qmake in QT_QMAKE_EXECUTABLE
, and then cmake can use qmake -query
to find all the other paths it needs (similar to pkg-config on Linux).
Steps for building a project using Qt and CMake usually are:
cmd
and cd
into build folder e.g. cd build\project
cmake-gui ..\..\source\project
QT_QMAKE_EXECUTABLE
and CMAKE_BUILD_TYPE
cmake --build .