Hi, I want to import a third party library into my JUCE project, specifically this one:
(I have noticed that Juce has built-in functions for Json, but I want to use this other one, mostly because I want to understand how to add packages in general to my Juce project, so just picked this one as practice, later I will want to add also the aws sdk for c++ , etc).
But I could not find information on how to do this in Juce - so I tried adding the file just like another Juce package, through the Projucer - “Add existing files”, selecting to compile it and then saving the project. After that, in my juce component cpp file, I tried this:
#include "ThirdParty/json.hpp" using json = nlohmann::json;
While this works, is this the correct way to handle third party libraries in Juce? Because on their github, it says it should be added like this:
But that gives me this error:
fatal error: nlohmann/json.hpp: No such file or directory #include <nlohmann/json.hpp>
So, it feels like I am importing it wrong but somehow it works?
Thanks a lot in advance.