summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: cc7db86f731604324f8e5fa28ee23116c0e2cc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)