If I use target_sources() to add a couple of header files to a library target, and then link that library to another target using target_link_libraries(), do I automatically inherit the include paths for those headers?
In other words, if I include one of those headers inside a source file of the new library, will the compiler automatically know where to find it? Or do I still need to explicitly specify the include directories using target_include_directories()?
I’m trying to understand whether adding headers via target_sources() is enough to propagate their include paths to dependent targets, or whether include directories must always be exported separately.
Kind regards