CMake添加-g编译选项

在文件 CMakeLists.txt添加下面一条语句

add_definitions("-Wall -g")

原文地址:https://www.cnblogs.com/lidabo/p/13859845.html