From d0a1e9e8ab0ced32c84d9453fcab223d4b253349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Stach?= Date: Tue, 29 Jul 2025 12:47:24 +0200 Subject: [PATCH] Yes! --- .gitignore | 1 + CMakeLists.txt | 27 +++++++++++++++++++++++++++ main.c | 0 3 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..413095b --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.15) + +project(snake) + +# Specify the source files +set(SOURCES + main.c + #tetris.c + #util.c + #file3.c +) + +# Add the executable +add_executable(snake ${SOURCES}) + + +# Compiler flags +target_compile_options(snake PUBLIC -std=c99 -Wall) + + +############################################################################### +## dependencies ############################################################### +############################################################################### + +# Used libraries + +#target_link_libraries(tetris PUBLIC ncurses SDL2 SDL2_mixer) diff --git a/main.c b/main.c new file mode 100644 index 0000000..e69de29