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:
parent
1841afad11
commit
1dbce35247
5 changed files with 151 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue