Add one CMake option to build the examples. Currently the examples are always built. For external projects, it is useful not to compile the examples. Change-Id: I41d3bde19c7e742818e60f78222d39c43992ca8b