Add a cmake option for building the examples