Use dependencies got from generated cmake

Change-Id: I42ef85468d3d8688a51703b73278da7d5148fde2