premake4.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. function createProject(vendor)
  2. project "Test_OpenCL_Bullet3"
  3. kind "ConsoleApp"
  4. -- defines { }
  5. if os.is("Windows") then
  6. --see http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012
  7. defines {"_VARIADIC_MAX=10"}
  8. end
  9. initOpenCL(vendor)
  10. includedirs
  11. {
  12. ".","../gtest-1.7.0/include",
  13. "../../src",
  14. "../../examples/ThirdPartyLibs", --for unzip
  15. }
  16. links {"gtest",
  17. -- "Bullet2FileLoader",
  18. "Bullet3OpenCL_" .. vendor,
  19. -- "Bullet3Dynamics",
  20. -- "Bullet3Collision",
  21. -- "Bullet3Geometry",
  22. "Bullet3Common"
  23. }
  24. --you can comment out the following few lines, then you need to unzip the untest_data.zip manually
  25. defines {"B3_USE_ZLIB"}
  26. files {
  27. "../../examples/ThirdPartyLibs/minizip/*.c",
  28. "../../examples/ThirdPartyLibs/zlib/*.c",
  29. }
  30. files {
  31. "**.cpp",
  32. "**.h",
  33. "../OpenCL/BasicInitialize/testInitOpenCL.cpp",
  34. "../OpenCL/AllBullet3Kernels/*.cpp"
  35. }
  36. if os.is("Windows") then
  37. end
  38. if os.is("Linux") then
  39. links {"pthread"}
  40. end
  41. if os.is("MacOSX") then
  42. end
  43. end
  44. createProject("clew")