hasselmm / cmake-toolchain-arduino-cli

A CMake toolchain for Arduino entirely based upon Arduino CLI
MIT License
1 stars 0 forks source link

Inject <Arduino.h> to main sketch #9

Closed hasselmm closed 4 weeks ago

hasselmm commented 1 month ago

Run arduino-cli compile --preprocess "${CMAKE_SOURCE_DIR}" to inject the header and to merge all .ino files.

hasselmm commented 4 weeks ago

Decided to do this preprocessing without arduino-cli because arduino-cli is very, very slow. For instance from scanning all platform library sources for headers; which are alot for STM32 and others.