diff --git a/MMCore/meson.build b/MMCore/meson.build index a24403066..fd9fbcecc 100644 --- a/MMCore/meson.build +++ b/MMCore/meson.build @@ -98,3 +98,8 @@ mmcore = declare_dependency( link_with: mmcore_lib, dependencies: mmdevice_dep, ) + +# For providing include dir to SWIG when using this project as a subproject +swig_include_dirs = mmdevice_proj.get_variable('swig_include_dirs') + [ + meson.current_source_dir(), +] diff --git a/MMDevice/meson.build b/MMDevice/meson.build index 9f6bdf496..a7f21a8d2 100644 --- a/MMDevice/meson.build +++ b/MMDevice/meson.build @@ -58,3 +58,6 @@ mmdevice = declare_dependency( include_directories: mmdevice_include_dir, link_with: mmdevice_lib, ) + +# For providing include dir to SWIG when using this project as a subproject +swig_include_dirs = [meson.current_source_dir()]