应用场景 想更换文件运行。 解决方法 我本来使用的是main.cpp文件运行, 现在我要将其改为test.cpp运行。 打开CMakeLists.txt将add_executable(demo main.cpp)改为add_executable(demo test.cpp)