FindGLUT: BeOS does not have libXi and libXmu
This commit is contained in:
parent
50bfedf391
commit
8e9630c719
|
@ -40,25 +40,39 @@ else ()
|
||||||
set(GLUT_cocoa_LIBRARY "-framework Cocoa" CACHE STRING "Cocoa framework for OSX")
|
set(GLUT_cocoa_LIBRARY "-framework Cocoa" CACHE STRING "Cocoa framework for OSX")
|
||||||
else ()
|
else ()
|
||||||
|
|
||||||
|
if (BEOS)
|
||||||
|
|
||||||
|
set(_GLUT_INC_DIR /boot/develop/headers/os/opengl)
|
||||||
|
set(_GLUT_glut_LIB_DIR /boot/develop/lib/x86)
|
||||||
|
|
||||||
|
else()
|
||||||
|
|
||||||
|
find_library( GLUT_Xi_LIBRARY Xi
|
||||||
|
/usr/openwin/lib
|
||||||
|
)
|
||||||
|
|
||||||
|
find_library( GLUT_Xmu_LIBRARY Xmu
|
||||||
|
/usr/openwin/lib
|
||||||
|
)
|
||||||
|
|
||||||
|
endif ()
|
||||||
|
|
||||||
find_path( GLUT_INCLUDE_DIR GL/glut.h
|
find_path( GLUT_INCLUDE_DIR GL/glut.h
|
||||||
/usr/include/GL
|
/usr/include/GL
|
||||||
/usr/openwin/share/include
|
/usr/openwin/share/include
|
||||||
/usr/openwin/include
|
/usr/openwin/include
|
||||||
/opt/graphics/OpenGL/include
|
/opt/graphics/OpenGL/include
|
||||||
/opt/graphics/OpenGL/contrib/libglut
|
/opt/graphics/OpenGL/contrib/libglut
|
||||||
|
${_GLUT_INC_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library( GLUT_glut_LIBRARY glut
|
find_library( GLUT_glut_LIBRARY glut
|
||||||
/usr/openwin/lib
|
/usr/openwin/lib
|
||||||
|
${_GLUT_glut_LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library( GLUT_Xi_LIBRARY Xi
|
unset(_GLUT_INC_DIR)
|
||||||
/usr/openwin/lib
|
unset(_GLUT_glut_LIB_DIR)
|
||||||
)
|
|
||||||
|
|
||||||
find_library( GLUT_Xmu_LIBRARY Xmu
|
|
||||||
/usr/openwin/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue