This is a project template for using the avr-gcc toolchain with cmake.
- AVR cmake toolchain file
- Template CMakeLists.txt file
- CMake module to find Arduino Core TODO
- AVR toolchain installed on your system
- uses avrdude
You can specify upload options when you generate your cmake project (Or just use the defaults).
~$ cd build
~$ cmake .. -DAVR_UPLOAD_BUAD=115200 -DAVR_UPLOAD_PORT=/dev/ttyACM0
And flash the device with:
~$ make flash-targetname