5

I'm wondering how I would go about adding an include directory to the system search path for a CMake project. Particularly, I've some source that I'm trying to build a CMake project for.

The source is not mine, and so I don't really want to modify it.

The source has the following include directive:

#include <foo/bar.h>

So I need to add the directory containing foo to my search path. Is this something I can set within the CMakeLists.txt?

4

1 に答える 1