Your binary data CMake target is called Assets
.
You need to include BinaryData.h
to access it.
You will have to configure the project (hit build in your IDE) to build JUCE’s juceaide
magic before the header will be available. Don’t freak out if your IDE can’t find it right away!
Want a more sophisticated solution? Check out CMakeRC which essentially lets you have a virtual filesystem inside of your C++ project. This is great if you want some folder structure. I use CMakeRC for preset json
files, and JUCE’s BinaryData for images.
Leave a Reply