Hi,
For a simpler example you can look at Ravi - it is CMake based build. Please see:
Https://github.com/dibyendumajumdar/ravi