using CMake to configure environment
CMake integration
CMake integration
fixed issue in examples 3 and 4