Browse Source

Provide information about compatibility and ES 2.0 target to users.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
ae9914c587
  1. 12
      modules/FindMagnum.cmake

12
modules/FindMagnum.cmake

@ -65,11 +65,21 @@ find_path(MAGNUM_INCLUDE_DIR
# Configuration
file(READ ${MAGNUM_INCLUDE_DIR}/magnumConfigure.h _magnumConfigure)
# Built for OpenGL ES?
# Compatibility?
string(FIND "${_magnumConfigure}" "#define MAGNUM_GCC46_COMPATIBILITY" _GCC46_COMPATIBILITY)
if(NOT _GCC46_COMPATIBILITY EQUAL -1)
set(MAGNUM_GCC46_COMPATIBILITY 1)
endif()
# Built for specific target?
string(FIND "${_magnumConfigure}" "#define MAGNUM_TARGET_GLES" _TARGET_GLES)
if(NOT _TARGET_GLES EQUAL -1)
set(MAGNUM_TARGET_GLES 1)
endif()
string(FIND "${_magnumConfigure}" "#define MAGNUM_TARGET_GLES2" _TARGET_GLES2)
if(NOT _TARGET_GLES2 EQUAL -1)
set(MAGNUM_TARGET_GLES2 1)
endif()
if(NOT MAGNUM_TARGET_GLES)
find_package(OpenGL REQUIRED)

Loading…
Cancel
Save