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.
This commit is contained in:
Ahmad Fatoum 2018-04-07 22:51:03 +02:00
parent 1841afad11
commit 1dbce35247
No known key found for this signature in database
GPG key ID: C3EAC3DE9321D59B
5 changed files with 151 additions and 15 deletions

View file

@ -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