fix cmake error
This commit is contained in:
parent
638cce5081
commit
4c67e57dd4
|
@ -23,9 +23,12 @@ IF(USE_OPENGL_ES2)
|
|||
FIND_PACKAGE(OpenGLES2 REQUIRED)
|
||||
FIND_PACKAGE(EGL REQUIRED)
|
||||
ADD_DEFINITIONS(-DOPENGL_ES2)
|
||||
SET(OPENGL_INCLUDE_DIR ${EGL_INCLUDE_DIR} ${OPENGLES_INCLUDE_DIR})
|
||||
SET(OPENGL_LIBRARIES ${EGL_LIBRARY} ${OPENGLES_LIBRARY})
|
||||
ELSE(USE_OPENGL_ES2)
|
||||
FIND_PACKAGE(OpenGL REQUIRED)
|
||||
FIND_PACKAGE(GLEW REQUIRED)
|
||||
SET(OPENGL_LIBRARIES ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
|
||||
ENDIF(USE_OPENGL_ES2)
|
||||
|
||||
FIND_PACKAGE(Lua REQUIRED)
|
||||
|
@ -115,8 +118,6 @@ ENDIF(WIN32)
|
|||
INCLUDE_DIRECTORIES(
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${EGL_INCLUDE_DIR}
|
||||
${OPENGLES_INCLUDE_DIR}
|
||||
${LUA_INCLUDE_DIR}
|
||||
${PHYSFS_INCLUDE_DIR}
|
||||
${GMP_INCLUDE_DIR}
|
||||
|
@ -126,10 +127,7 @@ INCLUDE_DIRECTORIES(
|
|||
|
||||
SET(framework_LIBRARIES
|
||||
${Boost_LIBRARIES}
|
||||
${GLEW_LIBRARY}
|
||||
${OPENGL_LIBRARIES}
|
||||
${OPENGLES_LIBRARY}
|
||||
${EGL_LIBRARY}
|
||||
${LUA_LIBRARIES}
|
||||
${PHYSFS_LIBRARY}
|
||||
${GMP_LIBRARY}
|
||||
|
|
Loading…
Reference in New Issue