]> gitweb.hhaalo.de Git - mv_none_space.git/commitdiff
add hello world enviroment for c
authorBastian Dehn <hhaalo@arcor.de>
Tue, 16 Jul 2024 09:00:38 +0000 (11:00 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 16 Jul 2024 09:00:38 +0000 (11:00 +0200)
.gitignore [new file with mode: 0644]
CMakeLists.txt [new file with mode: 0644]
src/CMakeLists.txt [new file with mode: 0644]
src/main.c [new file with mode: 0644]
tests/CMakeLists.txt [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c795b05
--- /dev/null
@@ -0,0 +1 @@
+build
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a8767e9
--- /dev/null
@@ -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 (file)
index 0000000..748fdc6
--- /dev/null
@@ -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 (file)
index 0000000..e3bfac7
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+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 (file)
index 0000000..bee9133
--- /dev/null
@@ -0,0 +1 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1)
\ No newline at end of file