diff options
Diffstat (limited to 'test cases/common/112 subdir subproject/prog')
-rw-r--r-- | test cases/common/112 subdir subproject/prog/meson.build | 5 | ||||
-rw-r--r-- | test cases/common/112 subdir subproject/prog/prog.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test cases/common/112 subdir subproject/prog/meson.build b/test cases/common/112 subdir subproject/prog/meson.build new file mode 100644 index 0000000..360b5f5 --- /dev/null +++ b/test cases/common/112 subdir subproject/prog/meson.build @@ -0,0 +1,5 @@ +subproject('sub') +libSub = dependency('sub', fallback: ['sub', 'libSub']) + +exe = executable('prog', 'prog.c', dependencies: libSub) +test('subdir subproject', exe) diff --git a/test cases/common/112 subdir subproject/prog/prog.c b/test cases/common/112 subdir subproject/prog/prog.c new file mode 100644 index 0000000..9035ff1 --- /dev/null +++ b/test cases/common/112 subdir subproject/prog/prog.c @@ -0,0 +1,5 @@ +#include <sub.h> + +int main(void) { + return sub(); +} |