Add build requirements

This commit is contained in:
Andreas Schaafsma 2025-10-03 23:42:36 +02:00
parent cb22b6d226
commit 138e8474c1
2 changed files with 15 additions and 0 deletions

8
CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.10.0)
project(njetris VERSION 0.1.0 LANGUAGES C)
add_executable(njetris tetris.c)
#add raylib
find_package(raylib REQUIRED)
target_link_libraries(njetris raylib m)

7
buildraylib.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
git clone --depth 1 https://github.com/raysan5/raylib.git raylib
cd raylib/src/
make PLATFORM=PLATFORM_DESKTOP # To make the static version.
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED # To make the dynamic shared version.
make PLATFORM=PLATFORM_WEB # To make web version.