meson.build 1.1 KB

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