I don't understand what I need to do to use a library which is located in /usr/include.
For example: I want to use the json library which is located in /usr/include/json.
In my project 'main.cpp' I do #include <json/json.h>
.
I don't get any errros but when I start to use the functions in the library I get undefined reference errors. I have this problem with multiple libraries, I have no idea what to do I searched on google but I only came across vague answers.
I'm pretty sure I need to do something in the CMakeLists.txt file but I have no idea what.