summaryrefslogtreecommitdiffhomepage
path: root/src/config.h
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-04-07 22:51:03 +0200
committerAhmad Fatoum <[email protected]>2018-04-07 23:39:53 +0200
commit1dbce352479f64748879fecb9df646654cd92229 (patch)
tree451901d0b4e5706b63d5a15ccd503ef3b975048c /src/config.h
parent1841afad11892bab16976b976d69b7757b617c8b (diff)
downloadraylib-1dbce352479f64748879fecb9df646654cd92229.tar.gz
raylib-1dbce352479f64748879fecb9df646654cd92229.zip
CMake: Generate config.h from CMakeOptions.txt
I would have liked config.h to be selected by include dir configuration, but this way is less intrusive.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h
index 40b9d7c4..0013c131 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,5 +1,7 @@
-/* Edit to control what features raylib is compiled with. */
-
+/* Edit to control what features Makefile'd raylib is compiled with. */
+#ifdef RAYLIB_CMAKE /* Edit CMakeOptions.txt for CMake instead! */
+#include "cmake/config.h"
+#else
// text.c
/* Default font is loaded on window initialization to be available for the user to render simple text. NOTE: If enabled, uses external module functions to load default raylib font (module: text) */
#define SUPPORT_DEFAULT_FONT 1
@@ -72,3 +74,5 @@
#define SUPPORT_SAVE_PNG 1
/* Support saving image data as PMP fileformat. NOTE: Requires stb_image_write library */
/* #undef SUPPORT_SAVE_BMP */
+
+#endif