Add build requirements
This commit is contained in:
8
CMakeLists.txt
Normal file
8
CMakeLists.txt
Normal 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
7
buildraylib.sh
Executable 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.
|
||||||
Reference in New Issue
Block a user