mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-06-04 04:50:44 +02:00
add c language Visual Studio example
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Making the MFPs think\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user