use included glew on Linux, only if glew is not installed in /usr/include/GL/glew.h
This commit is contained in:
@@ -52,7 +52,18 @@
|
|||||||
files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"}
|
files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"}
|
||||||
end
|
end
|
||||||
if os.is("Linux") then
|
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
|
end
|
||||||
configuration{}
|
configuration{}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user