project('blurhash', 'cpp', version : '0.1', default_options : ['warning_level=3', 'cpp_std=c++17']) lib = static_library('blurhash', 'blurhash.cpp', install : true) doctest_dep = dependency('doctest', fallback : ['doctest', 'doctest_dep']) tests = executable('blurhash-tests', 'blurhash.cpp', cpp_args : '-DDOCTEST_CONFIG_IMPLEMENT_WITH_MAIN', dependencies: doctest_dep, install : false) test('blurhash-tests', tests) executable('blurhash2bmp', 'blurhash2bmp.cpp', link_with: lib, install: true) executable('blurhash', 'image2blurhash.cpp', link_with: lib, install: true) install_headers('blurhash.hpp') pkg = import('pkgconfig') pkg.generate(libraries : [lib], subdirs : ['.'], version : meson.project_version(), name : meson.project_name(), filebase : meson.project_name(), description : 'C++ blurhash encoder/decoder')