I’m trying to use Binary Data with cmake and JUCE 6.
I’ve done the following thing:
1.- Put all images in a folder called Images
2.- Created this cmakelist.txt doc in that folder:
juce_add_binary_data(WanalogBinaryData SOURCES knob_back.png knob_marker.png switch_green.png switch_red.png Tube_Processor_Layout.png vumeter.png wanalog_w.png )
3.- I added the
line in the root CMakeLists.txt document, so the Images folder gets included
4.- I’ve also added the WanalogBinaryData to the linking phase like this:
target_link_libraries(WanalogAudioPlugin PRIVATE WanalogBinaryData # If we'd created a binary data target, we'd link to it here juce::juce_audio_utils juce::juce_dsp)
I see that the Binary data .o file is being compiled properly.
My question is… How can I now access this bynary data on source code?
BinaryData::whatever does not work any more.