Build using cmake:
cmake .
make
Make sure the nimiq node is running, configured to use your pool of choice (but with mining disabled) and RPC open with default setting. Then just run
./nimiq-miner
To see available options, run
./nimiq-miner --help