foreword
Why use CMake for C projects
CMake is a cross-platform installation (compilation) tool, which can describe the installation (compilation process) of all platforms with simple sentences. The function is that it can output various makefiles or project files, and can test the C++ features supported by the compiler, similar to automake under UNIX.
Open source C/C++ projects built with CMake (OpenCV, VTK Visualization Technology Toolkit)
Make Cmake build a pure C language development framework in QT - detailed explanation
Project directory structure
Detailed explanation of the QT project column corresponding to the top-level CMakeLists.txt of the project
Build" to execute CMake, Qt calls "C:\Qt.pureC\Tools\CMake_64\bin\cmake.exe", we found that the "Project" column on the left side of QT will change accordingly, as shown in the following figure:
Add xc in the specified directory to compile ( lazy people only need to remember this step, no need to learn CMake )
For example, to add pwm.c of app/driver in the QT pure C project directory to compile, that is, to change the top-level CMakeLists.txt as shown in the figure below:
The teacher will continue to update the QT pure C development framework
Download address: prj_QtPureCFirework.V0.0.rar-Embedded Document Resource-CSDN Library