How do you specify include_directories for a swig target in cmake? I see that to add a swig target you do:
swig_add_library(swg_target
TYPE STATIC
LANGUAGE python
SOURCES swg_src_files.i swg_src_files.h swg_src_files.cpp
)
but following this with the usual
target_include_directories(swg_target PUBLIC ".../include")
does not work (i.e. seems to do precisely nothing) and instead I need to put
include_directories(".../include")
before the call to swig_add_library. Is there a way to add include directories to a swig target without adding these directories globally for every target?