|
|
|
|
@ -52,11 +52,13 @@
|
|
|
|
|
# / MAGNUM_WINDOWLESSAPPLICATION_INCLUDE_DIRS to simplify porting. |
|
|
|
|
# |
|
|
|
|
# Features of found Magnum library are exposed in these variables: |
|
|
|
|
# MAGNUM_BUILD_STATIC - Defined if compiled as static libraries |
|
|
|
|
# MAGNUM_TARGET_GLES - Defined if compiled for OpenGL ES |
|
|
|
|
# MAGNUM_TARGET_GLES2 - Defined if compiled for OpenGL ES 2.0 |
|
|
|
|
# MAGNUM_TARGET_GLES3 - Defined if compiled for OpenGL ES 3.0 |
|
|
|
|
# MAGNUM_TARGET_DESKTOP_GLES - Defined if compiled with OpenGL ES |
|
|
|
|
# MAGNUM_BUILD_DEPRECATED - Defined if compiled with deprecated APIs |
|
|
|
|
# included |
|
|
|
|
# MAGNUM_BUILD_STATIC - Defined if compiled as static libraries |
|
|
|
|
# MAGNUM_TARGET_GLES - Defined if compiled for OpenGL ES |
|
|
|
|
# MAGNUM_TARGET_GLES2 - Defined if compiled for OpenGL ES 2.0 |
|
|
|
|
# MAGNUM_TARGET_GLES3 - Defined if compiled for OpenGL ES 3.0 |
|
|
|
|
# MAGNUM_TARGET_DESKTOP_GLES - Defined if compiled with OpenGL ES |
|
|
|
|
# emulation on desktop OpenGL |
|
|
|
|
# |
|
|
|
|
# Additionally these variables are defined for internal usage: |
|
|
|
|
@ -123,6 +125,10 @@ find_path(MAGNUM_INCLUDE_DIR
|
|
|
|
|
# Configuration |
|
|
|
|
file(READ ${MAGNUM_INCLUDE_DIR}/magnumConfigure.h _magnumConfigure) |
|
|
|
|
|
|
|
|
|
string(FIND "${_magnumConfigure}" "#define MAGNUM_BUILD_DEPRECATED" _BUILD_DEPRECATED) |
|
|
|
|
if(NOT _BUILD_DEPRECATED EQUAL -1) |
|
|
|
|
set(MAGNUM_BUILD_DEPRECATED 1) |
|
|
|
|
endif() |
|
|
|
|
string(FIND "${_magnumConfigure}" "#define MAGNUM_BUILD_STATIC" _BUILD_STATIC) |
|
|
|
|
if(NOT _BUILD_STATIC EQUAL -1) |
|
|
|
|
set(MAGNUM_BUILD_STATIC 1) |
|
|
|
|
|