I want to make clean类似的操作
delete various files generated by CMake.
It is found that cmake does not have similar operations. You need to manually browse the directories, delete images cmake_install.cmake
, CMakeCache.txt
CMakeFiles
files, and CMakeFiles
folders.
Is there cmake clean
a command like this to delete all these files automatically?
By looking at the help of the cmake command, it is found that this can be achieved by creating an additional folder:
cmake -S . -B build
After each operation, just delete the build file directly.