fix some linux issues (cmake doesn't need to link against OpenGL, X11, Xext since we dynamically load those

move some structures to global namespace
This commit is contained in:
2016-12-27 13:20:12 -08:00
parent 018aa08bf8
commit 291d35ea6e
2 changed files with 28 additions and 28 deletions

View File

@@ -60,7 +60,7 @@ SET(AppBasicExampleGui_SRCS
ADD_DEFINITIONS(-DB3_USE_STANDALONE_EXAMPLE)
LINK_LIBRARIES(
BulletDynamics BulletCollision LinearMath OpenGLWindow Bullet3Common ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
BulletDynamics BulletCollision LinearMath OpenGLWindow Bullet3Common
)
#some code to support OpenGL and Glew cross platform
@@ -83,7 +83,7 @@ ELSE(WIN32)
ADD_DEFINITIONS("-DGLEW_STATIC")
ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1")
LINK_LIBRARIES( X11 pthread dl Xext)
LINK_LIBRARIES( pthread dl )
ENDIF(APPLE)
ENDIF(WIN32)