a9183756-gh / Arduino-CMake-Toolchain

CMake toolchain for all Arduino compatible boards
MIT License
135 stars 40 forks source link

Dependency on the Arduino IDE #47

Open Falven opened 3 years ago

Falven commented 3 years ago

This should not have a hard dependency on the Arduino IDE. The way forward for Arduino is to use the CLI, even the installed IDE will use the CLI. It would be nice to be able to set your ARDUINO_INSTALL_PATH to the CLI path. I could try to make this change but it will take me a while to get up to speed on all of this code.

Also you shouldn't be reading all of these files, just invoke the executable and get the results directly from the CLI! It is much more efficient, readable and maintainable. For example, getting the CLI version...

exec_program(Executable "${ARDUINO_INSTALL_PATH}/arduino-cli" "version" _version)