I've used cgminer a long time ago for that purpose but now I think everything has been changed. So I need a working example in order to achieve my goal.
Why not share your thoughts here what exactly do you want to achieve?
We can maybe give you some idea of what you want to achieve.
I don't know if GPU/CPU still works on mining BTC but why not buy a USB stick miner Compact F or 2pac for your project?
If you are interested check this thread below
-
https://bitcointalk.org/index.php?topic=1764803.0