parent
98ce4539a9
commit
f9c63999c3
7 changed files with 33 additions and 6 deletions
@ -0,0 +1,6 @@ |
||||
project('subdirconfig', 'c') |
||||
|
||||
inc = include_directories('include') |
||||
|
||||
subdir('include') |
||||
subdir('src') |
@ -0,0 +1,2 @@ |
||||
number = '0' |
||||
configure_file('config.h.in', 'config.h') |
@ -0,0 +1,6 @@ |
||||
#ifndef CONFIG_H_ |
||||
#define CONFIG_H_ |
||||
|
||||
#define RETURN_VALUE @number@ |
||||
|
||||
#endif |
@ -0,0 +1,3 @@ |
||||
exe = executable('prog', 'prog.c') |
||||
exe.add_include_dirs(inc) |
||||
add_test('subdir config', exe) |
@ -0,0 +1,5 @@ |
||||
#include "config.h" |
||||
|
||||
int main(int argc, char **argv) { |
||||
return RETURN_VALUE; |
||||
} |
Loading…
Reference in new issue