Step 1: Is it included?, you can search by command
opkg list | grep sql
Then if you see a package install with this but replace cmake with your package of choice
opkg install cmake
- If there is no package then you need to build it from source either on you BBB or cross compile on your host pc