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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access