use included glew on Linux, only if glew is not installed in /usr/include/GL/glew.h

This commit is contained in:
Erwin Coumans 2014-07-01 13:01:42 -07:00
parent 6598d1fdde
commit dca234ec02

View File

@ -52,7 +52,18 @@
files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"}
end
if os.is("Linux") then
links{"GLEW"}
configuration{"Linux"}
if os.isdir("/usr/include") and os.isfile("/usr/include/GL/glew.h") then
links {"GLEW"}
else
defines { "GLEW_STATIC"}
--,"GLEW_NO_GLU"}
includedirs {
projectRootDir .. "btgui/OpenGLWindow/GlewWindows"
}
files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"}
end
end
configuration{}
end