Remade the Foundation library CMakeLists