Building using CMake

CMake is a set of cross-platform tools used for generating make files for different types of projects, such as Visual Studio and Qt. CMake uses a simple configuration file called CMakeLists.txt and can be easily modified to suit your needs. Since CMake is a third-party tool, you don't get much information from Qt's official documentation. Instead, you can read the documentation provided by CMake at https://cmake.org/documentation.

Therefore, if you decided that you prefer to use CMake instead of the default qmake provided by Qt, you then no longer create a .pro project file for your Qt projects. Instead, you create CMakeLists.txt as your project file and manually add the paths to your source files, libraries, and compiler ...

Get Application Development with Qt Creator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.