Adds def_test.cmake.