better cmake resource copying