Added basic CMake support for applications