|
|
@ -10,13 +10,14 @@
|
|
|
|
#################################################
|
|
|
|
#################################################
|
|
|
|
|
|
|
|
|
|
|
|
# glu
|
|
|
|
# glu
|
|
|
|
pkg_search_module( GLU glu )
|
|
|
|
set( OpenGL_GL_PREFERENCE LEGACY )
|
|
|
|
if( NOT GLU_FOUND )
|
|
|
|
find_package( OpenGL )
|
|
|
|
|
|
|
|
if( NOT OPENGL_FOUND )
|
|
|
|
check_include_file ( GL/glu.h HAVE_GLU )
|
|
|
|
check_include_file ( GL/glu.h HAVE_GLU )
|
|
|
|
if( NOT HAVE_GLU )
|
|
|
|
if( NOT HAVE_GLU )
|
|
|
|
tde_message_fatal( "glu is required, but was not found on your system" )
|
|
|
|
tde_message_fatal( "OpenGL (glu) is required, but was not found on your system" )
|
|
|
|
endif ( )
|
|
|
|
endif ( )
|
|
|
|
set( GLU_LIBRARIES "-lGL -lGLU" )
|
|
|
|
set( OPENGL_LIBRARIES "-lGL -lGLU" )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|