43 lines
479 B
Meson
43 lines
479 B
Meson
|
project(
|
||
|
'snakefile',
|
||
|
'cpp',
|
||
|
version: '0.0.0',
|
||
|
default_options: [
|
||
|
'prefix=/usr',
|
||
|
'warning_level=3',
|
||
|
'cpp_std=c++20'
|
||
|
]
|
||
|
)
|
||
|
|
||
|
lang = static_library(
|
||
|
'snakelang',
|
||
|
sources: [
|
||
|
]
|
||
|
)
|
||
|
|
||
|
executable(
|
||
|
'snake',
|
||
|
sources: [
|
||
|
'src/main.cpp',
|
||
|
],
|
||
|
dependencies: [
|
||
|
],
|
||
|
link_with: [
|
||
|
lang
|
||
|
],
|
||
|
install: true
|
||
|
)
|
||
|
|
||
|
executable(
|
||
|
'snaketests',
|
||
|
sources: [
|
||
|
'tests/main.cpp',
|
||
|
],
|
||
|
dependencies: [
|
||
|
dependency('catch2')
|
||
|
],
|
||
|
link_with: [
|
||
|
lang
|
||
|
]
|
||
|
)
|