premake4.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. function createProject(vendor)
  2. hasCL = findOpenCL(vendor)
  3. if (hasCL) then
  4. project ("Test_OpenCL_Primitives_" .. vendor)
  5. initOpenCL(vendor)
  6. language "C++"
  7. kind "ConsoleApp"
  8. includedirs {".","../../../src"}
  9. files {
  10. "main.cpp",
  11. "../../../src/Bullet3OpenCL/Initialize/b3OpenCLInclude.h",
  12. "../../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp",
  13. "../../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.h",
  14. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3FillCL.cpp",
  15. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3FillCL.h",
  16. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3BoundSearchCL.cpp",
  17. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3BoundSearchCL.h",
  18. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3PrefixScanCL.cpp",
  19. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3PrefixScanCL.h",
  20. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp",
  21. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.h",
  22. "../../../src/Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.cpp",
  23. "../../../src/Bullet3Common/b3AlignedAllocator.cpp",
  24. "../../../src/Bullet3Common/b3AlignedAllocator.h",
  25. "../../../src/Bullet3Common/b3AlignedObjectArray.h",
  26. "../../../src/Bullet3Common/b3Logging.cpp",
  27. "../../../src/Bullet3Common/b3Logging.h",
  28. }
  29. end
  30. end
  31. createProject("clew")
  32. createProject("AMD")
  33. createProject("Intel")
  34. createProject("NVIDIA")
  35. createProject("Apple")