mirror of https://github.com/fallahn/tmxlite.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
558 B
Meson
27 lines
558 B
Meson
pvt_incdir = include_directories('src')
|
|
|
|
conf = configuration_data()
|
|
conf.set('ASSETS_PATH', meson.current_source_dir() / '')
|
|
if get_option('pause_test')
|
|
conf.set('PAUSE_AT_END', true)
|
|
endif
|
|
|
|
project_config_file = configure_file(
|
|
input: 'src/config.h.in',
|
|
output: 'config.h',
|
|
configuration: conf,
|
|
format: 'cmake@'
|
|
)
|
|
|
|
exec_target = executable('tmxlite_parse_test',
|
|
'src/main.cpp',
|
|
project_config_file,
|
|
install: false,
|
|
include_directories: pvt_incdir,
|
|
dependencies: [
|
|
tmxlite_dep
|
|
],
|
|
)
|
|
|
|
test(meson.project_name() + ' unit test', exec_target)
|