I have multiple static libraries created in house that get linked into an image.
I want to use an external library that gets retrieved by using FetchContent_Declare.
proj
/lib1
CMakeList.txt
/lib2
CMakeList.txt
/exe
CMakeList.txt
/external
CMakeList.txt (FetchContent_Declare)
/build
/deps
/externallib1 (auto generated)
CMakeList.txt
I would like to use the following in /proj/CMakeList:
include_directories(externallib1/include)
But I don't know how to figure out the directory where the external library was actually downloaded?