Build using CMake on OS X. Should work on Linux with AVR-GCC