premake4.lua 1.3 KB

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