“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"