#!/bin/sh mkdir -p build && cd build if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi if [ -f "Makefile" ];then rm -f Makefile; fi if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi cmake -DCMAKE_TOOLCHAIN_FILE="armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=release .. make -j 2>&1 | tee build_log.txt