Add testing support with CMake