mirror of
https://github.com/pschatzmann/arduino-audio-tools.git
synced 2024-09-21 02:17:31 +00:00
1
Using the Project as library with cmake
Phil Schatzmann edited this page 2021-08-03 18:32:42 +02:00
This project can be used as cmake library. In addtion I also provide the PortAudioStream class which will work on Linux, Windows and OS/X.
Thus all dependencies (Portaudio, an Arduino Emulator and this project) can be downloaded and built with the help of a simple CMakeLists.txt.
I provide an example that can be found in the examples-desktop/ directory:
-
You just need to provide an Arduino Sketch as cpp file. In our example we use an setup that can be compiled both in Arduino and with cmake:
- the sketch is provided as ino file
- the cpp file is including the Arduino.h and the ino file
-
To build the example execute
mkdir build
cd build
cmake ..
make