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