cmake improvements
This commit is contained in:
@@ -9,7 +9,12 @@ function createDemos( demos, incdirs, linknames)
|
|||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
targetdir ".."
|
targetdir ".."
|
||||||
|
|
||||||
|
configuration {}
|
||||||
|
|
||||||
includedirs {incdirs}
|
includedirs {incdirs}
|
||||||
|
links {
|
||||||
|
linknames
|
||||||
|
}
|
||||||
|
|
||||||
configuration { "Windows" }
|
configuration { "Windows" }
|
||||||
defines { "GLEW_STATIC"}
|
defines { "GLEW_STATIC"}
|
||||||
@@ -31,9 +36,6 @@ function createDemos( demos, incdirs, linknames)
|
|||||||
links {"GL","GLU","glut"}
|
links {"GL","GLU","glut"}
|
||||||
configuration{}
|
configuration{}
|
||||||
|
|
||||||
links {
|
|
||||||
linknames
|
|
||||||
}
|
|
||||||
|
|
||||||
files {
|
files {
|
||||||
"./" .. name .. "/*.cpp" ,
|
"./" .. name .. "/*.cpp" ,
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
"../../btgui/lua-5.2.3/src"
|
"../../btgui/lua-5.2.3/src"
|
||||||
}
|
}
|
||||||
|
|
||||||
initOpenGL()
|
|
||||||
initGlew()
|
|
||||||
|
|
||||||
links{"gwen", "OpenGL_Window","OpenGL_TrueTypeFont","BulletSoftBody","BulletDynamics","BulletCollision","LinearMath","lua-5.2.3"}
|
links{"gwen", "OpenGL_Window","OpenGL_TrueTypeFont","BulletSoftBody","BulletDynamics","BulletCollision","LinearMath","lua-5.2.3"}
|
||||||
|
initOpenGL()
|
||||||
|
initGlew()
|
||||||
|
|
||||||
files {
|
files {
|
||||||
"**.cpp",
|
"**.cpp",
|
||||||
|
|||||||
@@ -162,13 +162,9 @@ end
|
|||||||
include "../test/enet/client"
|
include "../test/enet/client"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
include "../Demos"
|
||||||
|
include "../Extras"
|
||||||
|
|
||||||
if _OPTIONS["bullet2gpu"] then
|
if _OPTIONS["bullet2gpu"] then
|
||||||
include "../src/LinearMath"
|
|
||||||
include "../src/BulletCollision"
|
|
||||||
include "../src/BulletDynamics"
|
|
||||||
include "../src/BulletSoftBody"
|
|
||||||
include "../ObsoleteDemos/HelloWorld"
|
|
||||||
include "../Demos3"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user