I was struggling with an ugly problem and wished it would be possible to compile and run or debug my Audio Arduino Sketch on my Desktop Computer.
- You just need to provide an Arduino Sketch as cpp file together with this CMakeLists.txt example file. Just replace the example generator.cpp with your Arduino Sketch as cpp file in the add_executable line.
The CMakeLists.txt file automatically downloads all dependencies (including the arduino-audio-tools project).
Finally you can build the executable (the cmake way) with:
mkdir build cd build cmake .. make
If you want to use the debugger use
cmake -DCMAKE_BUILD_TYPE=DEBUG .. instead of
A full example can be found in the examples-desktop directory.