dining-philosophers/meson.build
2023-04-19 00:32:59 +02:00

32 lines
656 B
Meson

project('tech.owlcode.dining-philosophers', 'cpp')
add_global_arguments('-std=c++20', '-D_DEFAULT_SOURCE', language : 'cpp')
inc = include_directories('include')
sources = [
'src/main.cpp',
'src/random.cpp',
'src/philosopher.cpp',
]
inc = [
'include'
]
link_arguments = [
]
executable('dining',
sources,
include_directories : inc,
install : true,
link_args : link_arguments,
)
doxygen = find_program('doxygen', required : false)
if doxygen.found()
message('Doxygen found')
run_target('docs', command : [doxygen, meson.source_root() + '/Doxyfile'])
else
warning('Documentation disabled without doxygen')
endif