arduino-cmake / Arduino-CMake-NG

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

Refactored upload API #76

Closed MrPointer closed 5 years ago

MrPointer commented 5 years ago

This works refactors the upload API by creating a target dedicated for uploading rather than executing a command whenever CMake is run. This is a somewhat standard behavior in common frameworks. The new upload target is named after the source target and append flash to its end. Besides, the upload_arduino_target function has been renamed to set_upload_target_port as it describes more clearly what does it do. It's important to note that the target is created inside this function.

Closes #73