This project is intended to be build with ARM GCC toolchain under CMake project manager.
To generate native makefiles structure, please create build folder to not pollyte
your current workspace and launch CMake generation. It is assumed that ARM GCC toolchain path is added to the PATH environment variable.
If not - you could add it with set
(Windows) or export
(Unix) command: export PATH=<path/to/arm-none-eabi/toolchain>:$PATH
.
- Generate MinGW Makefiles
mkdir cmake-build-debug
cd cmake-build-debug
# Command to generate MinGW Makefiles
cmake .. -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=../arm-gcc-toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
- Generate Unix Makefiles
mkdir cmake-build-debug
cd cmake-build-debug
# Command to generate MinGW Makefiles
cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../arm-gcc-toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
- Generate Ninja build
mkdir cmake-build-debug
cd cmake-build-debug
# Command to generate MinGW Makefiles
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../arm-gcc-toolchain.cmake -DCMAKE_BUILD_TYPE=Debug