mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
use included glew on Linux, only if glew is not installed in /usr/include/GL/glew.h
This commit is contained in:
parent
6598d1fdde
commit
dca234ec02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user