viewtopic.php?t=1648
https://github.com/stm32duino/Arduino_C ... E_CMAKE.md
https://github.com/stm32duino/Arduino_C ... esentation
https://github.com/stm32duino/CMake_workspace
there are some prerequisites to install, most important CMake, python (and some python modules), ninja
https://github.com/stm32duino/Arduino_C ... wiki/Setup
after prerequisites are installed, is to run the quick start script from the *parent* (above sketch) folder of the sketch to generate a CMakeList.txt file in the sketch folder
https://github.com/stm32duino/Arduino_C ... art-script
e.g. where [ARDUINO_CORE_STM32_FOLDER] is where you git clone the Arduino_Core_STM32 repo
Code: Select all
python3 [ARDUINO_CORE_STM32_FOLDER]/cmake/scripts/cmake_easy_setup.py --board BLACKPILL_F401CC --sketch sketch_folder
then the build steps are, make a directory e.g. build (this is for CMake to generate it's work scripts / files and build, the bin file is found there after the build)
https://github.com/stm32duino/Arduino_C ... sing-cmake
Code: Select all
cmake -S [source folder] -B [build folder] -G Ninja
Code: Select all
cmake --build [build folder]
CMake is a built tool and it doesn't require an IDE. The use of an IDE is optional with this.