问题
In meson build system, I want to get the include directories from a dependency:
Simple example meson.build, using wxWidgets dependecy as example:
project('project1', ['cpp'])
wxdep = dependency('wxWidgets')
wxincludes = # ... how to get the include directories from wxdep ?
# in this case, wxincludes will be used to compile a resource file:
windows = import('windows')
windows.compile_resources('test.rc', include_directories: [wxincludes])
How can I get the include directories from a dependency for use in subsequent commands?
来源:https://stackoverflow.com/questions/60864453/how-to-get-the-include-directories-from-a-dependency-in-meson-build-system