mkdir build && cd build cmake .. -G "MinGW Makefiles" -DCMAKE_C_COMPILER="C:/Applications/Program Custom/msys2/mingw64/bin/gcc.exe" mingw32-make mkdir build && cd build cmake .. make