Hi, when I wrote libraries, I was wondering is there anyway I can expose my headers automatically when someone using target_link_libraries
to link my lib? Usually, when we use some libraries, even if most libraries offer some variables to hold headers’ path, we should manually write target_include_directories
along with target_link_libraries
.
So if I’m writing a library, is there any mechanism, so that users can automatically include headers just using target_link_libraries
?