cd project/cmake cmake -DCMAKE_TOOLCHAIN_FILE="toolchain-arm-none-eabi.cmake" -G "MinGW Makefiles" .\CMakeLists.txt mingw32-make