From: Bastian Dehn Date: Tue, 16 Jul 2024 09:00:38 +0000 (+0200) Subject: add hello world enviroment for c X-Git-Tag: 1.0.0^2^2~30 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=3c72d09e52d4651ae58bbf952a006bbdd8398275;p=mv_none_space.git add hello world enviroment for c --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a8767e9 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) + +PROJECT(mv_none_space) + +add_subdirectory(src) +add_subdirectory(tests) \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..748fdc6 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,3 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) + +ADD_EXECUTABLE(${PROJECT_NAME} main.c) \ No newline at end of file diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..e3bfac7 --- /dev/null +++ b/src/main.c @@ -0,0 +1,7 @@ +#include + +int main() +{ + printf("Hello World!\n"); + return 0; +} \ No newline at end of file diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..bee9133 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) \ No newline at end of file