cmake: Compile examples

Change-Id: I47ebb84ae641e49a5edfb41008a1a4c0c2dc951f