summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRay <[email protected]>2017-08-27 20:58:49 +0200
committerGitHub <[email protected]>2017-08-27 20:58:49 +0200
commit958fed26c9249b283cca4252827bab46e6736bdb (patch)
tree07105964919c99674aab2b9e6459ab2639b365c8 /CMakeLists.txt
parentc074783861994fb9f3bcc618b776a41dc57b50d0 (diff)
parente173db19f7f8e7e79c3f0cd6b88c207561bfa28b (diff)
downloadraylib-958fed26c9249b283cca4252827bab46e6736bdb.tar.gz
raylib-958fed26c9249b283cca4252827bab46e6736bdb.zip
Merge pull request #348 from define-private-public/cmake_partial
CMake based build system.
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()
+