mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-03-23 09:31:39 +01:00
add c language example
This commit is contained in:
17
07-c-language/build.gradle
Normal file
17
07-c-language/build.gradle
Normal file
@@ -0,0 +1,17 @@
|
||||
apply plugin: 'c'
|
||||
|
||||
sources {
|
||||
main {
|
||||
c {
|
||||
source {
|
||||
// Include just source, avoid including *.swp and other helper files
|
||||
include "**/*.c"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
executables {
|
||||
main {
|
||||
}
|
||||
}
|
||||
6
07-c-language/src/main/c/main.c
Normal file
6
07-c-language/src/main/c/main.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Making the MFPs think\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user