diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..084adcd --- /dev/null +++ b/CMakeLists.txt @@ -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) \ No newline at end of file diff --git a/buildraylib.sh b/buildraylib.sh new file mode 100755 index 0000000..7e78839 --- /dev/null +++ b/buildraylib.sh @@ -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.