Update CMake to the reference app-template. WIP