Open kiddy818 opened 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' 不是内部或外部命令,也不是可运行的程序
“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"