parent
416a6fc235
commit
a176588151
5 changed files with 30 additions and 1 deletions
@ -0,0 +1,9 @@ |
||||
project('include dir in subproj test', 'c') |
||||
|
||||
|
||||
subproject('inctest') |
||||
|
||||
|
||||
exe = executable('prog', 'prog.c') |
||||
|
||||
test('dummy', exe) |
@ -0,0 +1,4 @@ |
||||
|
||||
int main(int argc, char **argv) { |
||||
return 0; |
||||
} |
@ -0,0 +1,2 @@ |
||||
|
||||
/* file which is used in the subproject */ |
@ -0,0 +1,13 @@ |
||||
|
||||
project('subproj with includedir', 'c') |
||||
|
||||
|
||||
|
||||
compile_check = ''' |
||||
#include "incfile.h" |
||||
''' |
||||
|
||||
if not meson.get_compiler('c').compiles(compile_check, name : 'include in subproj', |
||||
include_directories: include_directories('include')) |
||||
error('failed') |
||||
endif |
Loading…
Reference in new issue