brought back the option to build either as "glut" or "freeglut": FREEGLUT_REPLACE_GLUT
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1732 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
9e72134ab6
commit
f0f7dc61ab
@ -49,6 +49,9 @@ ENDIF()
|
|||||||
# OpenGL ES support
|
# OpenGL ES support
|
||||||
OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" OFF)
|
OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" OFF)
|
||||||
|
|
||||||
|
# option to build either as "glut" (ON) or "freeglut" (OFF)
|
||||||
|
OPTION(FREEGLUT_REPLACE_GLUT "Be a replacement for GLUT" ON)
|
||||||
|
|
||||||
|
|
||||||
SET(FREEGLUT_HEADERS
|
SET(FREEGLUT_HEADERS
|
||||||
include/GL/freeglut.h
|
include/GL/freeglut.h
|
||||||
@ -365,15 +368,20 @@ ELSE()
|
|||||||
# or special-cased FreeGLUT long ago (e.g. .so.4 on OpenBSD), so
|
# or special-cased FreeGLUT long ago (e.g. .so.4 on OpenBSD), so
|
||||||
# the lack of support for current:revision:age in CMake should
|
# the lack of support for current:revision:age in CMake should
|
||||||
# not be a problem.
|
# not be a problem.
|
||||||
# - the output library should be named glut so it'll be linkable with -lglut
|
# - the output library should be named glut so it'll be linkable with -lglut
|
||||||
|
# (unless FREEGLUT_REPLACE_GLUT is false).
|
||||||
# - the shared library should link to the dependency libraries so that the user
|
# - the shared library should link to the dependency libraries so that the user
|
||||||
# won't have to link them explicitly (they shouldn't have to know that we depend
|
# won't have to link them explicitly (they shouldn't have to know that we depend
|
||||||
# on Xrandr or Xxf86vm)
|
# on Xrandr or Xxf86vm)
|
||||||
IF(FREEGLUT_GLES)
|
IF(FREEGLUT_GLES)
|
||||||
SET(LIBNAME freeglut-gles)
|
SET(LIBNAME freeglut-gles)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(LIBNAME glut)
|
IF(FREEGLUT_REPLACE_GLUT)
|
||||||
ENDIF()
|
SET(LIBNAME glut)
|
||||||
|
ELSE()
|
||||||
|
SET(LIBNAME freeglut)
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(FREEGLUT_BUILD_SHARED_LIBS)
|
IF(FREEGLUT_BUILD_SHARED_LIBS)
|
||||||
SET_TARGET_PROPERTIES(freeglut PROPERTIES VERSION ${SO_MAJOR}.${SO_MINOR}.${SO_REV} SOVERSION ${SO_MAJOR} OUTPUT_NAME ${LIBNAME})
|
SET_TARGET_PROPERTIES(freeglut PROPERTIES VERSION ${SO_MAJOR}.${SO_MINOR}.${SO_REV} SOVERSION ${SO_MAJOR} OUTPUT_NAME ${LIBNAME})
|
||||||
|
Reference in New Issue
Block a user