use cmake command to remove dir