You can add those include paths (
-I) to your project's include paths manually, or you can copy the output of
pkg-config to "other compiler options" (not portable, but works for you). It's the very same thing. It's not pretty and not portable, but it will work.
Alternatively (portable), you should be able to directly run
pkg-config via backticks in "other compiler options". This will put the correct options onto the commandline, no matter where you run it later.
Try putting
`pkg-config --cflags --libs cairo` into the field "other compiler options" in the project's option panel. Note that you need to use
`, not
', nor
", nor anything else that looks similar.
