summaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 6000a65a428fa01ab09eecbd30756e697868a823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project('blurhash', 'cpp',
  version : '0.1',
  default_options : ['warning_level=3', 'cpp_std=c++17'])

lib = static_library('blurhash',
           'blurhash.cpp',
           install : true)

doctest_proj = subproject('doctest')
doctest_dep = doctest_proj.get_variable('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)