What do you mean on how to set it up?
Basically mining software either uses the getwork or stratum protocol. I believe cgminer and cpuminer support both protocols. Many pools do as well.
For instance to use stratum, the url would something like stratup+tcp://miningpool.com:2233