| 1 |
project('project options tester', 'c', 'cpp', |
| 2 |
version : '2.3.4', |
| 3 |
license : 'mylicense') |
| 4 |
|
| 5 |
add_global_arguments('-DGLOBAL_ARGUMENT', language: 'c') |
| 6 |
add_project_arguments('-DPROJECT_OPTION', language: 'c') |
| 7 |
add_project_arguments('-DPROJECT_OPTION_CPP', language: 'cpp') |
| 8 |
add_project_arguments('-DPROJECT_OPTION_C_CPP', language: ['c', 'cpp']) |
| 9 |
|
| 10 |
sub = subproject('subexe', version : '1.0.0') |
| 11 |
|
| 12 |
add_project_arguments('-DPROJECT_OPTION_1', language: 'c') |
| 13 |
|
| 14 |
e = executable('exe', 'exe.c') |
| 15 |
e = executable('execpp', 'exe.cpp') |
| 16 |
test('exetest', e) |
| 17 |
test('execpptest', e) |