Added cmake for examples.