parent
fa74ef4c57
commit
5788f47952
4 changed files with 25 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
project('add language', 'c') |
||||
|
||||
test('C', executable('cprog', 'prog.c')) |
||||
|
||||
add_languages('cpp') |
||||
|
||||
test('C++', executable('cppprog', 'prog.cc')) |
@ -0,0 +1,6 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("I am plain C.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,6 @@ |
||||
#include<iostream> |
||||
|
||||
int main(int, char**) { |
||||
std::cout << "I am C++.\n"; |
||||
return 0; |
||||
} |
Loading…
Reference in new issue