However, if you are solo-mining simply include the transaction into your block when calculating it.
And you need to find software which let you manually choose transaction, since i don't remember any up-to-date mining software for solo mining (unless you open-source pool server)
You can't do that too easily you need to win a block before you can include the transaction on the block if you have a big farm with high hashrate maybe you can but if you only have few miners with solo-mining, no you can't.
Some pool operators can do that. I heard that in F2pool you can choose transaction to include on the block but only on their selected participants.
Look at this post from here
https://bitcointalk.org/index.php?topic=1726194.msg17274182#msg17274182