Added g_rmsdist and g_rotmat to the CMake build system