在Clion中使用gtest做单元测试,但是返回错误Error running 'xxxx.xxxx': Cannot run 'xxxx.xxxx' on <default>。
这是因为没有指定单元测试的main入口/程序入口
添加运行时的Target,再次运行单元测试,即可运行成功
在Clion中使用gtest做单元测试,但是返回错误Error running 'xxxx.xxxx': Cannot run 'xxxx.xxxx' on <default>。
这是因为没有指定单元测试的main入口/程序入口
添加运行时的Target,再次运行单元测试,即可运行成功