meson.build 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. project('gaming core tests', 'cpp')
  2. sources = ['Main.cpp',
  3. 'tests/Test.cpp',
  4. 'tests/ArrayTests.cpp',
  5. 'tests/HashMapTests.cpp',
  6. 'tests/ListTests.cpp',
  7. 'tests/BitArrayTests.cpp',
  8. 'tests/StringBufferTests.cpp',
  9. 'tests/RandomTests.cpp',
  10. 'utils/Random.cpp',
  11. 'tests/RingBufferTests.cpp',
  12. 'tests/SplitStringTests.cpp',
  13. 'tests/VectorTests.cpp',
  14. 'math/Vector.cpp',
  15. 'math/Matrix.cpp',
  16. 'tests/MatrixTests.cpp',
  17. 'tests/StackTests.cpp',
  18. 'tests/MatrixStackTests.cpp',
  19. 'tests/PlaneTests.cpp',
  20. 'math/Plane.cpp',
  21. 'tests/FrustumTests.cpp',
  22. 'math/Frustum.cpp',
  23. 'utils/Size.cpp',
  24. 'tests/QuaternionTests.cpp',
  25. 'math/Quaternion.cpp',
  26. 'tests/UtilsTests.cpp',
  27. 'tests/ColorTests.cpp',
  28. 'utils/Clock.cpp',
  29. 'tests/ClockTests.cpp',
  30. 'images/PNGReader.cpp',
  31. 'tests/PNGReaderTests.cpp',
  32. 'tests/BufferTests.cpp',
  33. 'wrapper/Texture.cpp',
  34. 'wrapper/GL.cpp',
  35. 'wrapper/GLFW.cpp',
  36. 'wrapper/GLEW.cpp',
  37. 'wrapper/Shader.cpp',
  38. 'wrapper/VertexBuffer.cpp',
  39. 'wrapper/Attributes.cpp',
  40. 'wrapper/Window.cpp',
  41. 'wrapper/WindowOptions.cpp',
  42. 'input/Button.cpp',
  43. 'input/Buttons.cpp',
  44. 'wrapper/TextureFormat.cpp',
  45. 'rendering/FileTexture.cpp',
  46. 'memory/StackAllocator.cpp',
  47. 'tests/StackAllocatorTests.cpp',
  48. 'utils/Buffer.cpp']
  49. glewDep = dependency('glew')
  50. glfwDep = dependency('glfw3')
  51. pngDep = dependency('libpng')
  52. executable('tests',
  53. sources: sources,
  54. dependencies : [glewDep, glfwDep, pngDep],
  55. cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])