project('librin', 'c', license : 'LGPL2.1', version : '0.0.4', default_options : ['c_std=c11', 'buildtype=release']) inc = include_directories('include') pkg = import('pkgconfig') add_project_arguments('-D_GNU_SOURCE', language : 'c') subdir('include') subdir('src') librin = library('rin', sources, version : meson.project_version(), include_directories : inc, pic : get_option('enable-pic'), install : true) pkg.generate(librin) if get_option('enable-tests') subdir('test') endif