summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorASDF <[email protected]>2017-07-22 19:45:36 -0400
committerBenjamin N. summerton <[email protected]>2017-08-27 13:28:02 -0400
commite173db19f7f8e7e79c3f0cd6b88c207561bfa28b (patch)
tree07105964919c99674aab2b9e6459ab2639b365c8 /CMakeLists.txt
parent0fc1323c80c2501c36741c05fd771ac1d001d049 (diff)
downloadraylib-e173db19f7f8e7e79c3f0cd6b88c207561bfa28b.tar.gz
raylib-e173db19f7f8e7e79c3f0cd6b88c207561bfa28b.zip
CMake based build system.
Some people might find this handly
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..0dfa0857
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 3.0)
+
+# Config options
+set(BUILD_EXAMPLES ON CACHE BOOL "Build the examples.")
+set(BUILD_GAMES ON CACHE BOOL "Build the example games.")
+
+add_subdirectory(src release)
+
+if (${BUILD_EXAMPLES})
+ add_subdirectory(examples)
+endif()
+
+if (${BUILD_GAMES})
+ add_subdirectory(games)
+endif()
+