2014-02-01 04:42:58 +00:00
|
|
|
function createProject(vendor)
|
|
|
|
|
|
|
|
project "Test_OpenCL_Bullet3"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
|
|
|
|
-- defines { }
|
|
|
|
|
|
|
|
targetdir "../../bin"
|
|
|
|
|
|
|
|
initOpenCL(vendor)
|
|
|
|
|
|
|
|
includedirs
|
|
|
|
{
|
|
|
|
".","../gtest-1.7.0/include",
|
|
|
|
"../../src",
|
|
|
|
}
|
|
|
|
|
|
|
|
links {"gtest",
|
|
|
|
-- "Bullet2FileLoader",
|
|
|
|
"Bullet3OpenCL_" .. vendor,
|
|
|
|
-- "Bullet3Dynamics",
|
|
|
|
-- "Bullet3Collision",
|
|
|
|
-- "Bullet3Geometry",
|
|
|
|
"Bullet3Common"
|
|
|
|
}
|
2014-02-04 21:39:55 +00:00
|
|
|
|
|
|
|
--you can comment out the following few lines, then you need to unzip the untest_data.zip manually
|
|
|
|
defines {"B3_USE_ZLIB"}
|
|
|
|
files {
|
|
|
|
"../../btgui/minizip/*.c",
|
|
|
|
"../../btgui/zlib/*.c",
|
|
|
|
}
|
2014-02-01 04:42:58 +00:00
|
|
|
|
|
|
|
files {
|
|
|
|
"**.cpp",
|
|
|
|
"**.h",
|
|
|
|
"../OpenCL/BasicInitialize/testInitOpenCL.cpp",
|
|
|
|
"../OpenCL/AllBullet3Kernels/*.cpp"
|
|
|
|
|
|
|
|
}
|
|
|
|
if os.is("Windows") then
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then
|
2014-02-01 06:40:42 +00:00
|
|
|
links {"pthread"}
|
2014-02-01 04:42:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-02-01 06:40:42 +00:00
|
|
|
createProject("clew")
|