arduino-cmake / Arduino-CMake-NG

CMake-Based framework for Arduino platforms
MIT License
138 stars 39 forks source link

Refactor upload API #73

Closed MrPointer closed 5 years ago

MrPointer commented 5 years ago

Currently the upload API requires users to comment-out the upload function if they simply intend to build their project, otherwise the build will fail as it depends on the upload target. This is a really bad and inconvenient API, thus it should be changed.

The old arduino-cmake project defined a target for uploading, which users could then build whenever they need to upload their code besides building it. Similar approach should be taken here.