meson.build 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. project('spg project', 'cpp')
  2. sources = ['Main.cpp',
  3. 'Game.cpp',
  4. 'MarchingCubes.cpp',
  5. 'LayeredFramebuffer.cpp',
  6. 'Texture3D.cpp',
  7. 'gaming-core/utils/Size.cpp',
  8. 'gaming-core/utils/Clock.cpp',
  9. 'gaming-core/utils/Random.cpp',
  10. 'gaming-core/utils/Error.cpp',
  11. 'gaming-core/wrapper/GL.cpp',
  12. 'gaming-core/rendering/Window.cpp',
  13. 'gaming-core/rendering/WindowOptions.cpp',
  14. 'gaming-core/rendering/Shader.cpp',
  15. 'gaming-core/rendering/VertexBuffer.cpp',
  16. 'gaming-core/rendering/Attributes.cpp',
  17. 'gaming-core/rendering/Texture.cpp',
  18. 'gaming-core/rendering/TextureFormat.cpp',
  19. 'gaming-core/math/Frustum.cpp',
  20. 'gaming-core/math/Plane.cpp',
  21. 'gaming-core/math/Matrix.cpp',
  22. 'gaming-core/math/Quaternion.cpp',
  23. 'gaming-core/math/Vector.cpp',
  24. 'gaming-core/input/TextInput.cpp',
  25. 'gaming-core/input/Button.cpp',
  26. 'gaming-core/input/Buttons.cpp']
  27. glewDep = dependency('glew')
  28. glfwDep = dependency('glfw3')
  29. executable('demo',
  30. sources: sources,
  31. dependencies : [glewDep, glfwDep],
  32. include_directories : include_directories('gaming-core'),
  33. cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])