summaryrefslogtreecommitdiffhomepage
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorRay <[email protected]>2021-12-04 19:56:02 +0100
committerRay <[email protected]>2021-12-04 19:56:02 +0100
commite637ad9d2a62fdcc2d4917de63defef5f8fb0591 (patch)
tree3299b60b57742a668a11cbb11b88264a22e4da6c /CMakeOptions.txt
parent48d4806e531e721d73995d61bfceaaeb955fd526 (diff)
downloadraylib-e637ad9d2a62fdcc2d4917de63defef5f8fb0591.tar.gz
raylib-e637ad9d2a62fdcc2d4917de63defef5f8fb0591.zip
Support custom modules inclusion
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index 77180842..46397733 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -27,6 +27,13 @@ endif()
option(INCLUDE_EVERYTHING "Include everything disabled by default (for CI usage" OFF)
set(OFF ${INCLUDE_EVERYTHING} CACHE INTERNAL "Replace any OFF by default with \${OFF} to have it covered by this option")
+# raylib modules included
+cmake_dependent_option(SUPPORT_MODULE_RSHAPES "Include module: rshapes" ON CUSTOMIZE_BUILD ON)
+cmake_dependent_option(SUPPORT_MODULE_RTEXTURES "Include module: rtextures" ON CUSTOMIZE_BUILD ON)
+cmake_dependent_option(SUPPORT_MODULE_RTEXT "Include module: rtext" ON CUSTOMIZE_BUILD ON)
+cmake_dependent_option(SUPPORT_MODULE_RMODELS "Include module: rmodels" ON CUSTOMIZE_BUILD ON)
+cmake_dependent_option(SUPPORT_MODULE_RAUDIO "Include module: raudio" ON CUSTOMIZE_BUILD ON)
+
# rcore.c
cmake_dependent_option(SUPPORT_CAMERA_SYSTEM "Provide camera module (rcamera.h) with multiple predefined cameras: free, 1st/3rd person, orbital" ON CUSTOMIZE_BUILD ON)
cmake_dependent_option(SUPPORT_GESTURES_SYSTEM "Gestures module is included (rgestures.h) to support gestures detection: tap, hold, swipe, drag" ON CUSTOMIZE_BUILD ON)