Update documentation about building a new application and add instructions to add the app in CMake files.