Add CMakeLists.txt for json and terrain samples and rename terrain 'res' folder to 'terrain'