Skip to content

SjDuque/Raylib-CMake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raylib-CMake

A simple template for using Raylib on any platform with CMake.

Although I recommend installing Raylib through a package manager, this project doesn't require you to have raylib installed at all. In the event that CMake cannot find Raylib, it'll automatically install everything you need into the project's build directory.

Downloading

You can either use git, curl, or wget to download the repository.

(Recommended) Using git:

git clone --depth=1 https://github.com/SjDuque/Raylib-CMake
rm -rf Raylib-CMake/.git

Using curl:

curl -L https://github.com/SjDuque/Raylib-CMake/archive/main.zip -o raylib_cmake.zip
unzip raylib_cmake.zip
rm -rf raylib_cmake.zip

Using wget:

wget https://github.com/SjDuque/Raylib-CMake/archive/main.zip -O raylib_cmake.zip
unzip raylib_cmake.zip
rm -rf raylib_cmake.zip

Building

cd Raylib-CMake
mkdir build
cd build
cmake ..
cmake --build .

Acknowledgement Stuff

The main.cpp file is from an example from www.raylib.com The CMakeLists.txt is modified from https://github.com/raysan5/raylib/blob/master/projects/CMake/CMakeLists.txt

FEEL FREE TO DELETE THE README and LICENSE. IT'S ONLY THERE AS A PLACE HOLDER. I DO NOT CARE ABOUT ANY MODIFICATION OR COPYING OF THIS REPOSITORY.

About

I'm tired of copy-pasting files every time I want to make a new Raylib project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors