diff options
| author | Ahmad Fatoum <[email protected]> | 2018-04-07 22:51:03 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-04-07 23:39:53 +0200 |
| commit | 1dbce352479f64748879fecb9df646654cd92229 (patch) | |
| tree | 451901d0b4e5706b63d5a15ccd503ef3b975048c /src/config.h | |
| parent | 1841afad11892bab16976b976d69b7757b617c8b (diff) | |
| download | raylib-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.h | 8 |
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 |
