summary refs log tree commit diff
path: root/meson.build
blob: f69126f1093cc50dfed053616efaacf1e60aa118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
project('meowcraft', 'cpp',
  version : '0.0.1',
  default_options : [
    'cpp_std=c++17',
    'warning_level=3',
    'prefer_static=true'])

subdir('assets')
subdir('src')

dependencies = []

glfw = dependency('glfw3', version : '>=3.3')
glew = dependency('glew', version : '>=2.1.0')

dependencies += [glfw, glew]

if target_machine.system() == 'darwin'
  darwin_opengl = dependency('appleframeworks', modules : ['OpenGL'])
  dependencies += [darwin_opengl]
endif

if target_machine.system() == 'linux'
  linux_opengl = dependency('gl')
  dependencies += [linux_opengl]
endif

executable('meowcraft',
  source_files + [asset_file],
  dependencies : dependencies,
  install : true)