urlfilter_lib = static_library('urlfilter', ['urlfilter.h', 'matcher.h', 'hostlist/hostlist.cpp', 'hostlist/hostlist.h', 'adblock/adblocklist.cpp', 'adblock/adblocklist.h', 'adblock/parser.cpp', 'adblock/parser.h'], dependencies: dep_qt5 ) dep_urlfilter = declare_dependency( include_directories: include_directories('.'), link_with: urlfilter_lib ) if dep_gtest.found() test('urlfilter: matcher', executable('urlfilter-matcher', dependencies: [dep_qt5, dep_gtest, dep_urlfilter], sources: ['test/matcher.cpp']), workdir: meson.current_source_dir() / 'test' ) test('urlfilter: host list', executable('urlfilter-hostlist', dependencies: [dep_qt5, dep_gtest, dep_urlfilter], sources: ['test/hostlist.cpp']), workdir: meson.current_source_dir() / 'test' ) test('urlfilter: adblock list', executable('urlfilter-adblocklist', dependencies: [dep_qt5, dep_gtest, dep_urlfilter], sources: ['test/adblock.cpp']), workdir: meson.current_source_dir() / 'test' ) endif