add hello world and meson

This commit is contained in:
Luca Conte 2025-03-05 21:04:05 +01:00
parent 08106f3c72
commit 4127d978d2
2 changed files with 20 additions and 0 deletions

13
meson.build Normal file
View File

@ -0,0 +1,13 @@
project('cg1', 'c')
src_files = [
'./src/main.c',
]
executable('cg1',
src_files,
dependencies: [
dependency('GL'),
dependency('glfw3')
]
)

7
src/main.c Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char const *argv[])
{
printf("Hello World!\n");
return 0;
}