This is an openFrameworks wrapper for cppsketch, which allows you to auto-recompile just your ofApp without recompiling the whole project. The point of this is so that you can more easily sketch small ideas without having to wait too long to see the results of tweaking numbers.
This only works on the mac for now, only tested with Xcode 11. Click the image below to see a video of how to set it up.
HOW TO USE
Use project generator to add ofxCppSketch or drag its folder into an empty project
Change your main.cpp to
change the line
ofRunApp(new ofxCppSketch("ofApp", __FILE__));
Go into project build settings, find "Dead code stripping" - change it to NO
Now, every time you save ofApp.h or ofApp.cpp whilst your app is running, it will recompile in the background - errors are displayed in the xcode console if compilation fails.
There are two examples, "simple" and "audio" - "simple" is the most basic setup, "audio" is an example of doing live coding with both graphics and audio.
Addons should work as long as they're listed in the addons.make file in the project folder. ofxCppSketch reads this to create header search paths for compilation.