mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-03-26 02:51:33 +01:00
add c language Visual Studio example
This commit is contained in:
18
08-c-visual-studio/build.gradle
Normal file
18
08-c-visual-studio/build.gradle
Normal file
@@ -0,0 +1,18 @@
|
||||
apply plugin: 'c'
|
||||
apply plugin: 'visual-studio'
|
||||
|
||||
sources {
|
||||
main {
|
||||
c {
|
||||
source {
|
||||
// Include just source, avoid including *.swp and other helper files
|
||||
include "**/*.c"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
executables {
|
||||
main {
|
||||
}
|
||||
}
|
||||
6
08-c-visual-studio/src/main/c/main.c
Normal file
6
08-c-visual-studio/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