grino/meson.build

50 lines
1.3 KiB
Meson
Raw Normal View History

2023-09-10 23:05:29 +00:00
project('grino',
'cpp',
version: '0.0.0',
default_options: [
'warning_level=3',
'cpp_std=c++17'
])
conf = configuration_data()
conf.set('version', meson.project_version())
configure_file(input: 'src/config.in.hpp',
output: 'config.hpp',
configuration: conf)
grino_src = static_library('grino',
sources: [
'src/Compiler.cpp',
'src/Lexer.cpp',
'src/Loc.cpp',
'src/Logger.cpp',
'src/Node.cpp',
'src/Parser.cpp',
'src/Program.cpp',
'src/VM.cpp',
'src/Value.cpp',
])
grino_dep = declare_dependency(link_with: grino_src)
executable('grino',
sources: [
'src/main.cpp'
],
dependencies: [
grino_dep
],
install: true)
executable('grino-tests',
sources: [
'tests/main.cpp',
'tests/Lexer.cpp',
'tests/Parser.cpp',
],
dependencies: [
grino_dep,
dependency('catch2')
])