summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2025-01-10 19:00:03 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2025-01-10 19:00:03 +0100
commitae9418696664246f30dbdbc592988e9e1299f31c (patch)
treec7bcaf5b20920d2142178c40b9b48575acfc9ae0 /CMakeLists.txt
parent966f754fe5431f22033522af21206398a998805c (diff)
fixed a local bug
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..cc7db86
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 3.0)
+project(Tetris)
+
+# Use GCC as the compiler (if preferred)
+set(CMAKE_C_COMPILER gcc)
+
+# Include Raylib headers and link libraries
+include_directories(/opt/homebrew/Cellar/raylib/5.5/include)
+link_directories(/opt/homebrew/Cellar/raylib/5.5/lib)
+
+# Add your source file
+add_executable(tetris TETRIS.c)
+
+# Link Raylib
+target_link_libraries(tetris raylib)