cmake scripts to build examples and tests