Can have built binaries in run_targets. Closes #264.
parent
32f72fee25
commit
4e8c4035e5
4 changed files with 50 additions and 4 deletions
@ -0,0 +1,10 @@ |
|||||||
|
#include<stdio.h> |
||||||
|
|
||||||
|
int main(int argc, char **argv) { |
||||||
|
if(argc != 2) { |
||||||
|
printf("I can not haz argument.\n"); |
||||||
|
} else { |
||||||
|
printf("I can haz argument: %s\n", argv[1]); |
||||||
|
} |
||||||
|
return 0; |
||||||
|
} |
@ -1,3 +1,9 @@ |
|||||||
project('run target', 'c') |
project('run target', 'c') |
||||||
|
|
||||||
run_target('mycommand', 'scripts/script.sh') |
run_target('mycommand', 'scripts/script.sh') |
||||||
|
|
||||||
|
# Make it possible to run built programs. |
||||||
|
# In cross builds exe_wrapper should be added if it exists. |
||||||
|
|
||||||
|
exe = executable('helloprinter', 'helloprinter.c') |
||||||
|
run_target('runhello', exe, 'argument') |
||||||
|
Loading…
Reference in new issue