refactory removing a file from cmake