Avoiding pain and seeking pleasure seems to be a built in goal to almost all living beings.
No living thing creates that goal for themselves, it comes built in.
One of the easiest way to find meaning then, is to strive to reduce other sentient beings sufferings, and to increase their happiness.
There is no need for a god, or an idea of a god to promote this point of view.