[cmake-developers] FreeGLUT Module

Rolf Eike Beer eike at sf-mail.de
Tue Jan 8 07:23:49 EST 2013


Янчарук Александр wrote:
> Adding the freeglut library to GLUT module would be solution for
> systems where installed glut lib.
> What if some one decide install latest FreeGLUT lib from source? In
> your case for succesful use of FreeGLUT i need install additional
> packages (glutg3 glutg3-dev in Debian). So, for me special module for
> FreeGLUT is more clear solution. May be im wrong, please fix me...

 From what I see you only replaced glut.h with freeglut.h and added 
freeglut as library name. If you would just add freeglut as library name 
unconditionally (in the current FindGLUT it already searched on Win32) 
and add GL/freeglut.h as header name just after GL/glut.h everything 
should be fine.

Eike



More information about the cmake-developers mailing list