aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2016-09-26 21:27:50 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2016-09-26 21:27:50 +0300
commit90ba4e3b8ba61e50ac2d9fe8bb8a44d74cd2d365 (patch)
treefd31b3f354e2ea555cff01f19c6fb8a338f2dae4 /README.md
parenta84ee52188111dc44724fdde47f131b9e6465511 (diff)
downloadrayskeleton-90ba4e3b8ba61e50ac2d9fe8bb8a44d74cd2d365.tar.gz
rayskeleton-90ba4e3b8ba61e50ac2d9fe8bb8a44d74cd2d365.zip
Add bootstrap scriptsHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md27
1 files changed, 24 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6a7b65b..a10d448 100644
--- a/README.md
+++ b/README.md
@@ -2,13 +2,34 @@
A simple to use and build skeleton project for raylib. Uses CMake.
-# building and running in 8 easy steps
+# Building and running in 6 easy steps
+
+The commands here will bootstrap your rayskeleton project with it's own raylib
+instance (and all of its dependencies). Raylib is automatically downloaded and
+built by the bootstrap script.
+
+ $ git clone git@github.com:oswjk/rayskeleton.git
+ $ cd rayskeleton
+ $ ./bootstrap.sh
+ $ cd build
+ $ make
+ $ ./src/rayskeleton
+
+# Building and running with a prebuilt/installed raylib
+
+If you have built raylib yourself and want to use the same local raylib
+installation for multiple projects, you can easily do that by setting the
+LOCAL_RAYLIB CMake variable. The variable must point to a directory where you
+have installed raylib (i.e., it contains bin, lib, include, etc.)
+
+In this example I have built raylib in a directory at the same level as
+rayskeleton, using a build directory named `build` and installed raylib under
+the build directory in a directory named `stage`.
$ git clone git@github.com:oswjk/rayskeleton.git
$ cd rayskeleton
$ mkdir build
$ cd build
- $ cmake ..
- $ make raylib
+ $ cmake -DCMAKE_INSTALL_PREFIX=stage -DLOCAL_RAYLIB=../raylib/build/stage ..
$ make
$ ./src/rayskeleton