- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 313
Using the Project as library with cmake
        Phil Schatzmann edited this page Aug 3, 2021 
        ·
        1 revision
      
    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