cpp-testing / GUnit

GUnit - Google.Test/Google.Mock/Cucumber on steroids
263 stars 53 forks source link

error at root CMakeList.txt L:81 and Line:89 in test function #77

Open kiddy818 opened 2 years ago

kiddy818 commented 2 years ago

“add_custom_command(TARGET ${out} COMMAND ${scenario} ./${out} --gtest_color=yes USES_TERMINAL)” this is an error cmake configure,it should be “add_custom_command(TARGET ${out} COMMAND ./${out} ${scenario} --gtest_color=yes USES_TERMINAL)”

the custom COMMAND should be "execute_file secnario=" not "secnario= execute_file"

kiddy818 commented 2 years ago

e, command "SCENARIO= test_execute_file" can not run at windows env. when run in windows, the command should be "set SCENARIO= && test_execute_file" so, this CMakeList.txt will be error at windows. "cd /D D:\work\github\GUnit\build && SCENARIO= ./example_GMock --gtest_color=yes"" 'SCENARIO' 不是内部或外部命令,也不是可运行的程序