使用qtcreator,选择cmake构建文件。
可能会报错:Qt: This does not seem to be a "Debug"build
解决:
点击左侧项目-编辑构建配置-添加写入CMAKE,点击左侧run-command line arguement写入"-DCMAKE_BUILD_TYPE=Debug"。
再按F5,就可以运行程序了。
使用qtcreator,选择cmake构建文件。
可能会报错:Qt: This does not seem to be a "Debug"build
解决:
点击左侧项目-编辑构建配置-添加写入CMAKE,点击左侧run-command line arguement写入"-DCMAKE_BUILD_TYPE=Debug"。
再按F5,就可以运行程序了。