slowly switching to cmake, cmake currently dosent work