include(CTest) add_executable ( hello hellow.c ) add_test (HelloRuns hello ) add_test (HelloTest1 hello) set_tests_properties (HelloTest1 PROPERTIES PASS_REGULAR_EXPRESSION "Hello World")